/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #090910;
  color: #e8e6f0;
  line-height: 1.6;
  position: relative;
}

a { 
  color: inherit; 
  text-decoration: none; 
}

img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
#root {
  display: flex;
  flex-direction: column;
  min-height: 100%; 
  width: 100%;
  overflow-x: hidden; 
}

#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ===== NOISE TEXTURE ===== */
.noise {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ===== CSS VARIABLES ===== */
:root {
  --orange: #ff6a00;
  --orange2: #ff9040;
  --orange-dim: rgba(255, 106, 0, .14);
  --orange-border: rgba(255, 106, 0, .28);
  --bg: #090910;
  --bg2: #0f0f1a;
  --bg3: #13131f;
  --text: #e8e6f0;
  --muted: rgba(232, 230, 240, .5);
  --border: rgba(255,255,255,.07);
  --border-hover: rgba(255,255,255,.14);
}

/* ===== LAYOUT ===== */
.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 16, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
}
.header-inner > *:first-child { flex-shrink: 0; }
.nav-tabs {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  max-width: 55%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

.logo:hover {
  transform: scale(1.05) rotate(2deg);
  filter: drop-shadow(0 4px 16px rgba(255,106,0,.4));
}
.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-img.sm {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

/* Nav */
.nav-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: nowrap;
  padding: 8px;
  align-items: center;
  overflow: visible;
  background: rgba(15, 15, 26, .95);
  border-radius: 20px;
  border: 1px solid var(--border);
  width: fit-content;
  margin-left: auto;
}
.nav-tabs::-webkit-scrollbar {
  display: none;
}
.nav-tabs .tab-btn {
  padding: 10px 18px;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
  min-height: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 14px;
  border: none;
}
.nav-tabs .tab-btn i {
  font-size: 15px;
}
.nav { display: none; gap: 6px; }
.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
  will-change: color, background;
}
.nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}
@media (min-width: 800px) { 
  .nav-tabs { display: flex; } 
  .nav { display: flex; } 
  .mobile-menu-btn,
  .mobile-menu { display: none !important; }
}
@media (max-width: 799px) { 
  .nav-tabs { display: none !important; } 
  .discord-desktop { display: flex !important; order: 2; }
  .mobile-menu-btn { display: flex !important; order: 3; }
  .noise,
  .orb,
  .cta-orb {
    display: none;
  }
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.mobile-menu-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
  will-change: transform, box-shadow;
  transform: translateZ(0);
  backface-visibility: hidden;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--border-hover);
  background: rgba(255,255,255,.12);
  box-shadow: 0 12px 32px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.1);
}
.btn:active { 
  transform: translateY(-1px) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange2) 100%);
  border-color: transparent;
  color: #1a0800;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255,106,0,.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ff7c1a, #ffaa55);
  box-shadow: 0 12px 40px rgba(255,106,0,.5), 0 0 0 1px rgba(255,106,0,.3);
  border-color: transparent;
  transform: translateY(-2px) scale(1.03);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,.05); }

.btn-large { padding: 12px 22px; border-radius: 12px; font-size: 15px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 80px 0 48px;
  overflow: hidden;
  /* Background image with a gradient that fades the image into black at the bottom */
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,1) 100%),
    url("./assets/hero-picture.png");
  background-size: cover;
  /* FIX: Changed from 'center' to 'center top' to anchor image upwards on mobile */
  background-position: center top; 
  background-repeat: no-repeat;
  transition: background 0.6s ease, opacity 0.6s ease;
  min-height: 520px;
}

.hero-bg-grid {
  display: none;
}

.orb { 
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; 
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.orb1 {
  width: 600px; height: 500px;
  top: -200px; left: -100px;
  background: radial-gradient(circle, rgba(255,106,0,.22), transparent 65%);
  animation: orb-drift 12s ease-in-out infinite;
  will-change: transform;
}
.orb2 {
  width: 500px; height: 400px;
  top: -100px; right: -50px;
  background: radial-gradient(circle, rgba(255,154,60,.12), transparent 65%);
  animation: orb-drift 15s ease-in-out infinite reverse;
  will-change: transform;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, 18px) scale(1.05); }
  66% { transform: translate(-8px, -12px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 900px) {
  .hero-inner { flex-direction: column; gap: 32px; }
}

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  color: rgba(255, 200, 160, .9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 20px;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, .25);
  animation: live-pulse 2s cubic-bezier(.25,.46,.45,.94) infinite;
  will-change: transform, box-shadow;
}
@keyframes live-pulse {
  0%, 100% { 
    opacity: 1; 
    box-shadow: 0 0 0 2px rgba(74,222,128,.25); 
    transform: scale(1);
  }
  50% { 
    opacity: .6; 
    box-shadow: 0 0 0 8px rgba(74,222,128,.12); 
    transform: scale(1.2);
  }
}

/* Hero heading */
h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 18px;
}
h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--orange), var(--orange2) 60%, #ffd080);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subhead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }

/* Hero card */
.hero-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}

/* Center hero text and actions when the side card is removed */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 920px; /* keep lines comfortable */
  padding: 0 18px;
}

.hero-copy h1 {
  text-align: center;
  margin: 0 0 12px;
  line-height: 0.98;
}

.h1-line { display: block; width: auto; text-align: center; }
.h1-line { white-space: nowrap; }
.h1-mc em { display: inline-block; }

/* Ensure heading scales nicely on small screens */
@media (max-width: 480px) {
  h1 { font-size: clamp(32px, 8vw, 48px); }
  .h1-line { white-space: normal; }
}

.hero-copy .subhead {
  max-width: 760px;
  margin: 0 auto 18px;
  text-align: center;
}

.subhead { overflow-wrap: break-word; word-break: break-word; }

/* More specific rule to ensure centering inside hero */
.hero .subhead {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.6;
}

.hero-cta { justify-content: center; }
.card-dots { display: flex; gap: 7px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #ffbc2e; }
.dot.g { background: #28c840; }
.card-label { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.card-body { padding: 20px; }
.server-info { margin-bottom: 16px; }
.info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--muted); }
.info-val { font-weight: 600; }

.tag-orange {
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  color: #ff9a3c;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.card-divider { height: 1px; background: var(--border); margin: 16px 0; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(232,230,240,.8); }
.check-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--orange2); }

.card-cta {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: 10px;
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  color: var(--orange2);
  font-size: 13px;
  font-weight: 700;
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
  will-change: background, border-color;
}
.card-cta:hover {
  background: rgba(255,106,0,.22);
  border-color: rgba(255,106,0,.45);
}

/* Stats bar */
.tab-btn {
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .35s cubic-bezier(.25,.46,.45,.94);
  will-change: transform, box-shadow, background, color;
  position: relative;
  flex-shrink: 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn i {
  font-size: 15px;
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange2) 100%);
  color: #1a0800;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(255,106,0,.35);
  animation: none;
}

@keyframes tab-active-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,106,0,.4); }
  50% { box-shadow: 0 0 0 10px rgba(255,106,0,0); }
}
.tab-content {
  display: none;
  padding-top: 40px;
}
.tab-content.active {
  display: block;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

#home-tab {
  padding-top: 0;
}

.rules-section { padding: 120px 0 80px 0; }
.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (min-width: 800px) {
  .rules-grid { grid-template-columns: 1fr 1fr; }
}

/* better rules readability */
.rules-card p { margin: 0; }

.rules-grid .rules-card { min-height: 100%; }

.rules-card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)) , var(--bg3);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  position: relative;
  overflow: hidden;
}

.rules-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: radial-gradient(600px 200px at 20% 0%, rgba(255,106,0,.22), transparent 60%),
              radial-gradient(500px 200px at 90% 10%, rgba(255,144,64,.14), transparent 55%);
  opacity: .55;
  pointer-events: none;
}

.rules-card > * {
  position: relative;
  z-index: 1;
}

.rules-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rules-card h3 .rules-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--orange-border);
  background: var(--orange-dim);
  color: var(--orange2);
  flex-shrink: 0;
}

.rules-card.rules-card--discord h3 .rules-icon {
  background: rgba(255,106,0,.10);
}

.rules-card.rules-card--smp h3 .rules-icon {
  background: rgba(74,222,128,.10);
  border-color: rgba(74,222,128,.22);
  color: #4ade80;
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.rules-list li {
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,106,0,.05);
  font-size: 14px;
  color: var(--text);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.rules-card--smp .rules-list li {
  background: rgba(74,222,128,.05);
}

.rules-list li:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

.rules-list li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  background: var(--orange2);
  box-shadow: 0 0 0 3px rgba(255,144,64,.15);
  flex-shrink: 0;
}

.rules-card--smp .rules-list li::before {
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,.15);
}

.staff-note {
  background: rgba(74,222,128,.08);
  border: 1px solid rgba(74,222,128,.2);
  border-radius: 14px;
  padding: 18px 18px;
  margin-top: 16px;
}

.staff-note h4 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  color: #4ade80;
  margin-bottom: 10px;
}

.staff-note p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}


.stats-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 16px 24px;
  background: rgba(255,255,255,.02);
  border: none;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 32px; flex: 1; min-width: 100px; }
.stat-value { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.stat-label { font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.stat-sep { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

@media (max-width: 600px) {
  .stat-sep { display: none; }
  .stat-item { min-width: 45%; padding: 8px 16px; }
}

/* ===== SECTIONS ===== */
.section { padding: 90px 0; }
.section,
.rules-section,
.staff-role-section {
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}
.section-header { margin-bottom: 52px; }
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange2);
  margin-bottom: 10px;
}
.section h2, h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
}

/* Features grid */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  transition: all .4s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange2);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ===== ABOUT ===== */
.about-section {
  /* Make the area below the hero fully black as requested */
  background: #000;
  border-top: none;
  border-bottom: none;
}
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

.about-copy p { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.about-copy .btn { margin-top: 8px; }

.about-panel { display: flex; flex-direction: column; gap: 12px; }

.panel-block { width: 100%; }

.panel-block { background: var(--bg3); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.panel-block h4 {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.info-list { display: flex; flex-direction: column; }

/* Feature bullets used in Server info */
.feature-list {
  list-style: none;
  padding: 12px 0 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
}
.feature-item::before {
  content: '';
  display: inline-flex;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(18,16,20,0.6);
  border: 1px solid var(--orange);
  box-shadow: 0 6px 18px rgba(255,106,0,.06);
  margin-top: 2px;
  margin-right: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6 L9 17 L4 12' stroke='%23ff6a00' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}
.info-row-2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-row-2:last-child { border-bottom: none; }
.info-row-2 span { color: var(--muted); }
.info-row-2 strong { font-weight: 600; color: var(--text); }

.panel-links { display: flex; flex-direction: column; gap: 8px; }
.panel-links--about { margin-bottom: 10px; }

.quick-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
  will-change: color, background;
}

.quick-link--discord {
  padding: 16px 18px;
  border-radius: 14px;
}

.quick-link:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,.04);
}


/* ===== FAQ ===== */
.faq-container { max-width: 720px; margin: 0 auto; padding-top: 56px; }


.staff-content,
.events-content {
  padding-top: 80px;
}

/* ===== EVENTS ===== */
.events-header {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.events-content {
  max-width: 880px;
  margin: 0 auto;
  padding-top: 12px;
}

.event-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 28px;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)),
    #101018;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}

.event-date-block {
  min-height: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(74,222,128,.10), rgba(45,212,191,.04)),
    rgba(0,0,0,.16);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 18px 12px;
  text-align: center;
}

.event-day,
.event-month {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.event-number {
  font-family: 'Syne', sans-serif;
  color: #fff;
  font-size: 48px;
  font-weight: 800;
  line-height: .95;
  letter-spacing: 0;
  margin: 7px 0;
}

.event-main {
  min-width: 0;
  padding: 6px 4px 2px 0;
}

.event-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.event-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(74,222,128,.28);
  background: rgba(74,222,128,.09);
  color: #86efac;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.event-date {
  color: #e8e6f0;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0;
}

.event-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 12px;
}

.event-desc {
  color: rgba(232,230,240,.72);
  font-size: 15px;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 20px;
}

.event-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
  margin-bottom: 16px;
}

.event-meta-item {
  min-width: 0;
  background: rgba(9,9,16,.72);
  padding: 14px;
}

.event-meta-label {
  display: block;
  color: rgba(232,230,240,.48);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 5px;
}

.event-meta-val {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.event-note {
  color: #67e8f9;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 799px) {
  .events-content {
    padding-top: 36px;
  }

  .event-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
  }

  .event-date-block {
    min-height: auto;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
    padding: 14px;
  }

  .event-number {
    font-size: 34px;
    margin: 0;
  }

  .event-main {
    padding: 0;
  }

  .event-meta {
    grid-template-columns: 1fr;
  }
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.staff-grid-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
  overflow: hidden;
}

.staff-grid-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange-border);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}

.staff-grid-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--border);
  margin-bottom: 16px;
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
}

.staff-grid-card:hover img {
  border-color: var(--orange-border);
  transform: scale(1.02);
}

.staff-grid-info h4 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.staff-grid-info p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg3);
  overflow: hidden;
  transition: border-color .3s cubic-bezier(.25,.46,.45,.94);
  will-change: border-color;
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item[open] { border-color: var(--orange-border); }

.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color .25s cubic-bezier(.25,.46,.45,.94);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  transition: transform .25s cubic-bezier(.25,.46,.45,.94), color .25s cubic-bezier(.25,.46,.45,.94);
  flex-shrink: 0;
  margin-left: 12px;
  transform: rotate(0deg) scale(1);
  will-change: transform;
}
.faq-item summary:hover::after {
  color: var(--orange);
}
.faq-item[open] summary::after { 
  content: '−'; 
  transform: rotate(180deg) scale(1.1);
}

.faq-item p {
  padding: 14px 20px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.faq-item[open] p {
  max-height: 1000px;
  opacity: 1;
  padding-top: 14px;
  padding-bottom: 18px;
}
.faq-item strong { color: var(--text); }

/* ===== CTA SECTION ===== */
.cta-section { padding: 80px 0; }
.cta-block {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 64px 32px;
  border-radius: 24px;
  background: var(--bg3);
  border: 1px solid var(--orange-border);
}
.cta-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255,106,0,.14), transparent 60%);
  pointer-events: none;
  filter: blur(40px);
  animation: orb-drift 8s ease-in-out infinite;
}
.cta-block .section-eyebrow { margin-bottom: 10px; }
.cta-block h2 { margin-bottom: 12px; }
.cta-block > p { color: var(--muted); font-size: 16px; margin-bottom: 28px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ===== STAFF MAIN ===== */
.staff-role-section {
  margin-bottom: 48px;
}

.staff-role-title {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 32px;
  padding: 20px;
  border: 2px solid;
  border-radius: 12px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Main Character */
.staff-role-section.role-maincharacter .staff-role-title {
  color: #ffd700;
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Founder */
.staff-role-section.role-founder .staff-role-title {
  color: #8b1afc;
  border-color: #8b1afc;
  background: rgba(139, 26, 252, 0.08);
  text-shadow: 0 0 10px rgba(154, 97, 211, 0.4);
}

/* Network Owner */
.staff-role-section.role-networkowner .staff-role-title {
  color: #ff2323;
  border-color: #ff2323;
  background: rgba(255, 35, 35, 0.08);
  text-shadow: 0 0 10px rgba(255, 68, 44, 0.4);
}

/* Head Admin */
.staff-role-section.role-headadmin .staff-role-title {
  color: #8d35b3;
  border-color: #8d35b3;
  background: rgba(141, 53, 179, 0.08);
  text-shadow: 0 0 10px rgba(139, 53, 179, 0.4);
}

/* Admin */
.staff-role-section.role-admin .staff-role-title {
  color: #ff6a00;
  border-color: #ff6a00;
  background: rgba(255, 106, 0, 0.08);
  text-shadow: 0 0 10px rgba(255, 106, 0, 0.4);
}

/* Discord Admin */
.staff-role-section.role-discordadmin .staff-role-title {
  color: #00d9ff;
  border-color: #00d9ff;
  background: rgba(0, 217, 255, 0.08);
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
}

/* MC Admin */
.staff-role-section.role-mcadmin .staff-role-title {
  color: #00db55;
  border-color: #00db55;
  background: rgba(0, 219, 85, 0.08);
  text-shadow: 0 0 10px rgba(1, 219, 85, 0.4);
}

/* Manager */
.staff-role-section.role-manager .staff-role-title {
  color: #ffd492;
  border-color: #ffd492;
  background: rgba(255, 212, 146, 0.08);
  text-shadow: 0 0 10px rgba(255, 212, 146, 0.4);
}

/* Developer */
.staff-role-section.role-developer .staff-role-title {
  color: #a0a0a0;
  border-color: #a0a0a0;
  background: rgba(160, 160, 160, 0.08);
  text-shadow: 0 0 10px rgba(160, 160, 160, 0.4);
}

/* Moderator */
.staff-role-section.role-moderator .staff-role-title {
  color: #ff619b;
  border-color: #ff619b;
  background: rgba(255, 97, 155, 0.08);
  text-shadow: 0 0 10px rgba(255, 97, 155, 0.4);
}

/* Partner Manager */
.staff-role-section.role-partnermanager .staff-role-title {
  color: #1d30ff;
  border-color: #1d30ff;
  background: rgba(29, 48, 255, 0.08);
  text-shadow: 0 0 10px rgba(1, 63, 197, 0.4);
}

/* Event Manager */
.staff-role-section.role-eventmanager .staff-role-title {
  color: #00e2bf;
  border-color: #00e2bf;
  background: rgba(0, 226, 191, 0.08);
  text-shadow: 0 0 10px rgba(1, 197, 197, 0.4);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.staff-role-section.role-single .staff-grid {
  grid-template-columns: 1fr;
  max-width: 280px;
  margin: 0 auto;
}

.staff-role-section.role-double .staff-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
  margin: 0 auto;
}

.staff-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
}
.staff-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,.4);
}

.staff-avatar-wrap {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
}
.staff-maincharacter-ring {
  background: linear-gradient(135deg, #ffd700, #ff9a3c, #ff6a00);
  box-shadow: 0 0 20px rgba(255, 160, 0, .45);
}
.staff-networkowner-ring {
  background: linear-gradient(135deg, #ff2323cb, #e00b0bbb, #9e0000);
  box-shadow: 0 0 20px rgba(255, 68, 44, 0.45);
}
.staff-headadmin-ring {
  background: linear-gradient(135deg, #46245586, #8d35b3, #832fa7);
  box-shadow: 0 0 14px rgba(139, 53, 179, 0.3);
}
.staff-admin-ring {
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  box-shadow: 0 0 14px rgba(255, 106, 0, .3);
}
.staff-mcadmin-ring {
  background: linear-gradient(135deg, #369876, #2a5f44, #a1ffcf);
  box-shadow: 0 0 14px rgba(1, 219, 85, 0.3);
}
.staff-discordadmin-ring {
  background: linear-gradient(135deg, #01d4cabe, #0383fa, #027cee);
  box-shadow: 0 0 14px rgba(0, 46, 114, 0.664);
}
.staff-manager-ring {
  background: linear-gradient(135deg, #9b86667a, #bba765de, #ffd492);
  box-shadow: 0 0 14px rgba(155, 134, 102, 0.664);
}
.staff-developer-ring {
  background: linear-gradient(135deg, #919191be, #414141, #242424);
  box-shadow: 0 0 14px rgba(117, 117, 117, 0.664);
}
.staff-moderator-ring {
  background: linear-gradient(135deg, #ff669d, #ff3881, #ff669ecc);
  box-shadow: 0 0 14px rgba(99, 99, 99, 0);
}
.staff-partnermanager-ring {
  background: linear-gradient(135deg, #051aff, #000ea3, #182bff);
  box-shadow: 0 0 14px rgba(1, 63, 197, 0.596);
}
.staff-eventmanager-ring {
  background: linear-gradient(135deg, #00574a, #74ffea, #00917b);
  box-shadow: 0 0 14px rgba(1, 197, 197, 0.596);
}
.staff-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg2);
}

.staff-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.staff-name {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.staff-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge-maincharacter {
  background: rgba(255, 215, 0, .15);
  border: 1px solid rgba(255, 215, 0, .35);
  color: #ffd700;
}
.badge-networkowner {
  background: #ff25253d;
  border: 1px solid #ff260059;
  color: #e20000;
}
.badge-headadmin {
  background: #46245586;
  border: 1px solid #8d35b3;
  color: #832fa7;
}
.badge-admin {
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  color: #ff9a3c;
}
.badge-mcadmin {
  background: rgba(2, 255, 86, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.15);
  color: #3cffde;
}
.badge-discordadmin {
  background: #3292cd44;
  border: 1px solid #015285;
  color: #00d9ff;
}
.badge-manager {
  background: #9b86667a;
  border: 1px solid #bba765de;
  color: #ffd492;
}
.badge-developer {
  background: #7575751a;
  border: 1px solid #3a3a3a;
  color: #000000;
}
.badge-moderator {
  background: #f884ae86;
  border: 1px solid #fd83b0;
  color: #ff619b;
}
.badge-partnermanager {
  background: #000b8888;
  border: 1px solid #182bff;
  color: #1d30ff;
}
.badge-eventmanager {
  background: #00a88f71;
  border: 1px solid #02fdd7;
  color: #00e2bf;
}
@media (max-width: 999px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 599px) {
  .staff-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .staff-card { padding: 24px 14px 20px; }
  .staff-role-title {
    font-size: 24px;
    padding: 16px;
    margin-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .orb,
  .live-dot {
    animation: none !important;
    transition: none !important;
  }
}

/* Landscape phone fixes */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 40px 0 24px;
  }
  
  .section {
    padding: 40px 0;
  }
}

/* ===== FOOTER ===== */
.site-footer { 
  background: #000000; 
  border-top: none; 
  padding: 0;
}

.footer-inner { 
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 120px;
  padding: 60px 0 40px 0;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.footer-logo { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  font-family: 'Syne', sans-serif; 
  font-weight: 800; 
  font-size: 15px; 
}

.footer-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-legal {
  color: rgba(232, 230, 240, .4);
  font-size: 11px;
  line-height: 1.4;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  transition: all .3s;
}

.footer-social-link:hover {
  color: var(--orange2);
  border-color: var(--orange2);
  background: rgba(255, 106, 0, .1);
}

.footer-columns {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 200px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange2);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color .3s;
}

.footer-links a:hover {
  color: var(--orange2);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 24px 0;
  text-align: center;
}

.footer-copy { 
  color: var(--muted); 
  font-size: 12px; 
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {

  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all .6s cubic-bezier(.25,.46,.45,.94);
  will-change: transform, opacity;
}
.reveal.visible { 
  opacity: 1; 
  transform: translateY(0) scale(1);
}
.reveal-delay { transition-delay: .1s; }
.reveal-delay2 { transition-delay: .2s; }

/* ===== MOBILE RESPONSIVE UPDATES ===== */
/* Mobile-first base adjustments */
@media (max-width: 799px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  /* Typography scaling */
  h1 {
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1.05;
    margin-bottom: 16px;
  }
  
  h2, .section h2 {
    font-size: clamp(24px, 6vw, 36px);
    line-height: 1.15;
  }
  
  .subhead {
    font-size: 16px;
    line-height: 1.65;
  }
  
  /* Section spacing */
  .section {
    padding: 64px 0;
  }
  
  .hero {
    padding: 64px 0 40px;
  }
  
  .section-header {
    margin-bottom: 40px;
    text-align: center;
  }
  
  /* Buttons touch-friendly */
  .btn {
    padding: 12px 20px;
    min-height: 44px;
    font-size: 15px;
  }
  
  .btn-large {
    padding: 14px 24px;
    font-size: 16px;
  }
  
  /* Hero CTA stack */
  .hero-cta,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-cta .btn,
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Stats bar mobile */
  .stats-bar {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
  }
  
  .stat-item {
    padding: 12px 0;
    min-width: auto;
    flex: none;
  }
  
  .stat-sep {
    display: none;
  }
  
  /* Feature cards full-width */
  .features-grid {
    gap: 20px;
  }
  
  .feature-card {
    padding: 28px 20px;
  }
  
  .feature-card h3 {
    font-size: 18px;
  }
  
  /* FAQ touch targets */
  .faq-item summary {
    padding: 20px 24px;
    min-height: 52px;
  }
  
  .faq-item p {
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 24px;
    font-size: 15px;
    line-height: 1.7;
  }
}

/* Extra small screens (320px-480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .header-inner .btn {
    font-size: 12px !important;
    padding: 8px 12px !important;
    min-height: 36px;
  }
  
  .header-inner .btn svg {
    width: 14px;
    height: 14px;
  }
  
  .logo {
    font-size: 13px;
  }
  
  .logo-img {
    width: 24px;
    height: 24px;
  }
  
  .mobile-menu-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 8px !important;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .hero {
    padding: 48px 0 32px;
  }
  
  h1 {
    font-size: clamp(28px, 10vw, 40px);
  }
  
  .hero-card {
    margin: 0 -12px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .card-body {
    padding: 24px 20px;
  }
  
  /* Rules cards */
  .rules-card {
    padding: 24px 20px;
  }
  
  .rules-list li {
    padding: 14px 16px;
    font-size: 15px;
  }
}

/* Tablet portrait (481px-799px) */
@media (min-width: 481px) and (max-width: 799px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Hide desktop nav on mobile, adjust header */
@media (max-width: 799px) {
  .nav-tabs {
    display: none;
  }

  /* Header-Discord nur für Desktop */
  .discord-desktop {
    display: none !important;
  }

  .header-inner {
    gap: 12px;
    padding: 12px 0;
  }

  .site-header .btn {
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }
}



/* Rules grid mobile */
@media (max-width: 799px) {
  .rules-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* About grid always stacks mobile */
@media (max-width: 899px) {
  .about-grid {
    gap: 32px;
  }
  
  .about-panel {
    order: -1;
  }
}

/* CTA block mobile */
@media (max-width: 799px) {
  .cta-block {
    padding: 48px 24px;
  }
}

/* Footer mobile */
@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 32px 0;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-desc {
    max-width: none;
  }

  /* Ensure sticky footer works reliably on small screens */
  body {
    padding-bottom: 0;
  }
}




/* ===== SERVER STATUS COLOURS ===== */
.status-online  { color: #4ade80; }
.status-offline { color: #f87171; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .orb,
  .live-dot {
    animation: none !important;
    transition: none !important;
  }
}

/* Landscape phone fixes */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 40px 0 24px;
  }
  
  .section {
    padding: 40px 0;
  }
}

/* Ensure no overflow */
@media (max-width: 799px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Mobile hamburger menu */
@media (max-width: 799px) {
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    z-index: 101;
    position: relative;
    margin-left: auto;
  }
  
  .mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s cubic-bezier(.25,.46,.45,.94);
    transform-origin: center;
  }
  
  .mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
  }
  
  .mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -5px);
  }
  
  /* Mobile menu overlay */
  .mobile-menu {
    position: fixed;
    right: 0; /* Pushed to right wall */
    top: 0;
    width: 320px; /* Fixed width sidebar */
    height: 100vh;
    background: rgba(9, 9, 16, 0.877);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999; /* Above noise (999) and header */

    /* Important: don't transition "visibility"/layout changes via "all" */
    visibility: hidden;
    opacity: 0;
    transform: translateX(100%); /* Slide from right */
    pointer-events: none;

    transition:
      opacity 0.4s cubic-bezier(.25,.46,.45,.94),
      transform 0.4s cubic-bezier(.25,.46,.45,.94),
      visibility 0s linear 0.4s; /* applied after slide-out */

    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
    box-shadow: -8px 0 32px rgba(0,0,0,.6); /* Stronger left shadow */
  }

  .mobile-menu[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
    transform: translateX(0); /* Slide in from right */
    pointer-events: auto;
    transition:
      opacity 0.4s cubic-bezier(.25,.46,.45,.94),
      transform 0.4s cubic-bezier(.25,.46,.45,.94),
      visibility 0s linear 0s; /* become visible immediately */
  }

  
  .mobile-menu-inner {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 80px 20px 100px;
    overflow-y: auto;
  }
  
  .mobile-menu-close {
    position: absolute;
    top: 8px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    background: rgba(255,255,255,.06);
    border-radius: 10px;
    color: var(--text);
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: all .3s cubic-bezier(.25,.46,.45,.94);
  }
  
  .mobile-menu-close:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--border-hover);
    transform: scale(1.05);
  }
  
  .mobile-menu-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
    flex: 1;
  }
  
.mobile-tab-btn {
    padding: 20px 16px;
    font-size: 18px;
    border-radius: 16px;
    justify-content: flex-start;
    border-width: 2px;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all .3s cubic-bezier(.25,.46,.45,.94);
  }
  
  .mobile-tab-btn i {
    font-size: 20px;
  }
  
  .mobile-tab-btn.active,
  .mobile-tab-btn:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 32px rgba(255,106,0,.3);
  }
  
  .mobile-menu-discord {
    margin-top: auto;
    padding-top: 32px;
    border-top: 1px solid var(--border);
  }
  
  .mobile-menu-discord .btn {
    width: 100%;
    justify-content: center;
    padding: 18px 24px;
    font-size: 17px;
  }

.mobile-menu-discord .discord-icon {
    display: inline-block;
    color: #000000;
    flex-shrink: 0;
    margin-right: 6px;
  }
}

/* Mobile Fix for Staff/Team Grid */
@media screen and (max-width: 768px) {
  .staff-grid, 
  .team-grid, 
  .members-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ===== REVIEWS ===== */
.reviews-panel {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.reviews-form .input-small {
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
}
.reviews-form .input-texarea {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  resize: vertical;
}
.rating { display: inline-flex; gap: 6px; align-items: center; }
.rating .star {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(232,230,240,.28);
  font-size: 20px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: color .18s ease, transform .12s ease, background .12s ease;
}
.rating .star:hover { transform: translateY(-2px); color: var(--orange2); }
.rating .star.selected { color: var(--orange2); text-shadow: 0 6px 18px rgba(255,106,0,.12); }

.reviews-list .review-card {
  background: linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,0)), var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.review-delete {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .18s cubic-bezier(.25,.46,.45,.94);
}
.review-delete:hover {
  color: var(--orange2);
  border-color: var(--orange-border);
  background: rgba(255,106,0,.06);
  transform: translateY(-2px);
}

/* Reviews error message */
.reviews-error {
  color: #f87171; /* red */
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
}
.review-meta { display:flex;justify-content:space-between;align-items:center;gap:8px; }
.review-name { font-weight:700; color:var(--text); font-family: 'Syne', sans-serif; }
.review-date { color:var(--muted); font-size:13px; }
.review-stars { color:var(--orange2); font-size:16px; }
.review-body { color:var(--muted); font-size:14px; line-height:1.6; white-space:pre-wrap; padding-right:40px; }

@media (max-width: 599px) {
  .reviews-panel { padding: 16px; }
  .rating .star { font-size:18px; padding:6px; }
}
