/* ═══════════════════════════════════════════════════════════
   LIFEA MC - PART 1 CSS
   Core, Navbar, Hero, Stats
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #dc143c;
  --primary-dark: #b01030;
  --primary-light: #ff1744;
  --bg: #ffffff;
  --bg2: #fafafa;
  --bg3: #f5f5f5;
  --bg4: #eeeeee;
  --text: #1a1a1a;
  --text-muted: #666;
  --text-dim: #999;
  --border: #e0e0e0;
  --border-hover: #dc143c;
  --glow: rgba(220, 20, 60, 0.15);
  --nav-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  overflow-x: hidden;
  scroll-padding-top: 72px;
  background-color: var(--bg);
  color-scheme: light dark;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: thin;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(ellipse 70% 45% at 8% 0%, rgba(220, 20, 60, 0.10), transparent 70%),
    radial-gradient(ellipse 65% 50% at 92% 62%, rgba(220, 20, 60, 0.08), transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed; /* overridden to scroll on mobile below */
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  position: relative;
  scroll-behavior: smooth;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(220, 20, 60, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 20, 60, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  will-change: auto;
}

body::after {
  content: '';
  position: fixed;
  inset: auto -18vw -26vh auto;
  width: min(62vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 20, 60, 0.12), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
  will-change: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-light); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* ── BACKGROUND ── */
#bgParticles {
  display: none;
}

#heartCanvas {
  display: none;
}

#mcCanvas {
  display: none;
}

/* ── LOADER ── */
#loader {
  display: none;
}

/* ═══════════════════════════════════════════════
   NAVBAR — Static solid bar, zero lag
   ═══════════════════════════════════════════════ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 1px 0 var(--border);
}

#navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

[data-theme="dark"] #navbar {
  background: #0d0d0d;
  border-bottom-color: #1e1e1e;
  box-shadow: 0 1px 0 #1e1e1e;
}
[data-theme="dark"] #navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* ── LOGO ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.nav-logo:hover { opacity: 0.8; color: var(--text); }

.nav-logo-mark {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.logo-heart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.logo-heart--pixel { z-index: 2; }
.logo-heart--smooth {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}
.nav-logo strong {
  color: var(--primary);
  font-weight: 700;
}


.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  background: transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease;
  transform: none !important;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(220, 20, 60, 0.08);
  transform: none !important;
}
.nav-link i {
  font-size: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  transform: none !important;
}
.nav-link:hover i,
.nav-link.active i {
  opacity: 1;
  transform: none !important;
}

.nav-link .dropdown-arrow {
  display: inline-block;
  font-size: 0.55rem;
  margin-left: 2px;
}

.nav-indicator {
  display: none !important;
}

/* ── DROPDOWN MENU ── */
.nav-item .dropdown-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  border-radius: 14px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
  transition:
    opacity 0.4s var(--smooth),
    visibility 0.4s var(--smooth),
    transform 0.4s var(--bounce);
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.nav-item .dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-menu a,
.dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 10px;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.3s var(--smooth),
    color 0.3s ease,
    transform 0.25s var(--bounce);
}
.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: rgba(220, 20, 60, 0.08);
  color: var(--primary);
  transform: translateX(4px);
}
.dropdown-menu a i,
.dropdown-menu button i {
  width: 20px;
  text-align: center;
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.dropdown-menu a:hover i,
.dropdown-menu button:hover i {
  color: var(--primary);
}
.dropdown-menu .dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 10px;
  opacity: 0.5;
}
.dropdown-menu .dropdown-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 8px 14px 4px;
}

/* ── STORE LINK (pill style) ── */
.store-link {
  background: var(--primary) !important;
  color: #fff !important;
  margin-left: 4px;
  padding: 8px 20px;
  transition:
    background 0.35s var(--smooth),
    transform 0.3s var(--bounce),
    box-shadow 0.35s ease !important;
}
.store-link:hover,
.store-link.active {
  background: var(--primary-dark) !important;
  color: #fff !important;
  transform: translateY(-1px) scale(1.03) !important;
  box-shadow: 0 6px 24px var(--glow) !important;
}
.store-link i {
  opacity: 1 !important;
}

/* ── NAV RIGHT ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.hamburger:hover {
  background: var(--bg3);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── DRAWER (Mobile Menu) ── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 1100;
}
.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  border-left: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
  transform: translateX(100%);
  transition: transform 0.5s var(--bounce);
  z-index: 1200;
  overflow-y: auto;
}
.drawer.open {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}
.drawer-header span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer-header i {
  color: var(--primary);
}
.drawer-close {
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.drawer-close:hover {
  background: var(--bg3);
}
.drawer-content {
  padding: 16px;
}
.drawer-section {
  margin-bottom: 16px;
}
.drawer-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 8px 12px 4px;
}
.drawer ul {
  list-style: none;
}
.drawer ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s var(--smooth), color 0.3s ease, transform 0.25s var(--bounce);
}
.drawer ul li a:hover {
  background: rgba(220, 20, 60, 0.08);
  color: var(--primary);
  transform: translateX(4px);
}
.drawer ul li a i {
  width: 20px;
  text-align: center;
  color: var(--text-dim);
}
.drawer ul li a:hover i {
  color: var(--primary);
}
.drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 14px;
  opacity: 0.4;
}
.drawer-ip-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin: 0 14px;
  background: rgba(220, 20, 60, 0.08);
  border: 1px solid rgba(220, 20, 60, 0.2);
  border-radius: 10px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.02em;
  transition: background 0.3s ease, color 0.3s ease;
}
.drawer-ip-btn:hover {
  background: var(--primary);
  color: #fff;
}
.drawer-ip-btn i {
  font-size: 0.9rem;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 80px) 24px 80px;
  background: 
    radial-gradient(ellipse at top, rgba(220, 20, 60, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(220, 20, 60, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 1px 1px, rgba(220, 20, 60, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.6;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(220, 20, 60, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  animation: gentle-pulse 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gentle-pulse {
  0%, 100% { 
    transform: translateX(-50%) scale(1);
    opacity: 0.5;
  }
  50% { 
    transform: translateX(-50%) scale(1.1);
    opacity: 0.8;
  }
}
.hero-glow {
  display: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
}
.hero-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease, float 3s ease-in-out infinite;
}
.hero-icon svg {
  filter: drop-shadow(0 4px 12px rgba(220, 20, 60, 0.3));
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.hero-badge {
  display: none;
}

/* ── CINEMATIC HERO TITLE ── */
.hero-title {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease;
  position: relative;
}

.hero-title .gradient-text {
  background: linear-gradient(
    135deg,
    #dc143c 0%,
    #ff1744 25%,
    #ff4569 50%,
    #ff1744 75%,
    #dc143c 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 3s ease-in-out infinite;
  display: inline-block;
  font-weight: 700;
  position: relative;
}

@keyframes textShimmer {
  0% { background-position: 0% center; }
  50% { background-position: 200% center; }
  100% { background-position: 0% center; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
  font-weight: 400;
  max-width: 600px;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-status-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}
.status-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  min-width: 280px;
}
.status-pill:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.discord-pill {
  text-decoration: none;
}
.pill-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border-radius: 10px;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.discord-pill .pill-icon {
  background: var(--bg3);
  color: var(--text);
}
.pill-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}
.pill-top {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pill-main {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.pill-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 8px #4caf50;
  animation: blink 2s ease-in-out infinite;
}
.status-dot.offline {
  background: #f44336;
  box-shadow: 0 0 8px #f44336;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s backwards;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  display: none;
}

/* ── CONTENT VISIBILITY for off-screen sections ── */
#news, #staff, .footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* ── STATS BAR ── */
.stats-bar {
  position: relative;
  z-index: 2;
  background: var(--bg3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.stat-item i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.stat-item > div:nth-child(2) {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-num {
  font-size: 2rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ── TOAST ── */
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
#toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stat-divider { display: none; }
}

@media (max-width: 640px) {
  .hero-status-row { flex-direction: column; }
  .status-pill { width: 100%; }
  .hero-btns { flex-direction: column; width: 100%; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .btn-discord { display: none; }
  .btn-ip-copy .ip-text { display: none; }
  .btn-ip-copy { padding: 8px 10px; }
}

.section, .hero, .stats-bar, .footer { position: relative; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s var(--smooth), transform 0.55s var(--smooth);
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
}

/* ── REST OF CSS (unchanged from below) ── */
/* ═══════════════════════════════════════════════════════════
   PART 2 CSS - GAME MODES & NEWS
   ═══════════════════════════════════════════════════════════ */

/* ── SECTION COMMON ── */
.section {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--border) 50%, transparent);
  opacity: 0.3;
  pointer-events: none;
}
.section-header {
  position: relative;
  text-align: center;
  margin-bottom: 56px;
  padding: 40px 24px 8px;
  animation: fadeIn 0.8s ease;
  isolation: isolate;
}
.section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 560px);
  height: 140px;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(220, 20, 60, 0.1) 0%, transparent 72%);
  pointer-events: none;
  z-index: -1;
}
.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 320px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.35;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.section-header-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 14px;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 6px 24px var(--glow);
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  margin-bottom: 14px;
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid rgba(220, 20, 60, 0.22);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.section-badge i {
  font-size: 0.8rem;
}
.section-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* ── GAME MODES ── */
.gamemodes-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.gamemode-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color var(--transition), box-shadow 0.3s ease;
  cursor: pointer;
  animation: fadeInUp 0.6s ease backwards;
}
.gamemode-card:nth-child(1) { animation-delay: 0.1s; }
.gamemode-card:nth-child(2) { animation-delay: 0.2s; }
.gamemode-card:nth-child(3) { animation-delay: 0.3s; }
.gamemode-card::before {
  display: none;
}
.gamemode-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.gamemode-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border-radius: 10px;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}
.gamemode-card:hover .gamemode-icon {
  transform: scale(1.1) rotate(5deg);
}
.gamemode-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.gamemode-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-weight: 400;
}
.gamemode-features {
  list-style: none;
  margin-bottom: 24px;
}
.gamemode-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.gamemode-features li i {
  color: var(--primary);
  font-size: 0.9rem;
}
.gamemode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition);
}
.gamemode-card:hover .gamemode-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── NEWS (What's New) ── */
#news .section-header-icon {
  transition:
    transform 0.45s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.4s ease;
}
#news .section-header:hover .section-header-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 28px var(--glow);
}

.news-container {
  max-width: 1200px;
  margin: 0 auto;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.news-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  animation: fadeInUp 0.6s ease backwards;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1),
    border-color 0.35s ease,
    box-shadow 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.news-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(220, 20, 60, 0.07) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}
.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 14px 40px rgba(220, 20, 60, 0.18);
}
.news-card:hover::before {
  opacity: 1;
}
.news-image {
  width: 100%;
  height: 200px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  position: relative;
  overflow: hidden;
  transition: background 0.45s ease;
}
.news-card:hover .news-image {
  background: linear-gradient(160deg, rgba(220, 20, 60, 0.14) 0%, var(--bg3) 70%);
}
.news-image i {
  position: relative;
  z-index: 1;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.55, 0.64, 1),
    filter 0.4s ease,
    color 0.3s ease;
}
.news-card:hover .news-image i {
  transform: scale(1.18) translateY(-6px);
  filter: drop-shadow(0 8px 20px rgba(220, 20, 60, 0.4));
  color: var(--primary-light);
}
.news-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 2;
}
.news-card:hover .news-image::after {
  transform: translateX(120%);
}
.news-content {
  position: relative;
  z-index: 3;
  padding: 24px;
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.news-card:hover .news-content {
  transform: translateY(-3px);
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.news-card:hover .news-meta {
  color: var(--text-muted);
}
.news-meta i {
  color: var(--primary);
  transition: transform 0.35s cubic-bezier(0.34, 1.45, 0.64, 1);
}
.news-card:hover .news-meta i {
  transform: scale(1.15);
}
.news-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.news-card:hover .news-title {
  color: var(--primary);
}
.news-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  font-weight: 400;
}
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    gap 0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
    color 0.3s ease;
}
.news-link i {
  transition: transform 0.4s cubic-bezier(0.34, 1.55, 0.64, 1);
}
.news-card:hover .news-link {
  gap: 12px;
  color: var(--primary-dark);
}
.news-card:hover .news-link i {
  transform: translateX(5px);
}

[data-theme="dark"] .news-card {
  background: var(--bg3);
}
[data-theme="dark"] .news-card:hover .news-image {
  background: linear-gradient(160deg, rgba(255, 23, 68, 0.18) 0%, var(--bg4) 70%);
}
[data-theme="dark"] .news-image::after {
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 62%
  );
}
.no-news {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
  font-size: 1rem;
}
.no-news i {
  font-size: 3rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: block;
}

@media (max-width: 768px) {
  .gamemodes-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════
   PART 3 CSS - STAFF & FOOTER
   ═══════════════════════════════════════════════════════════ */

.staff-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.staff-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, border-color var(--transition), box-shadow 0.3s ease;
  cursor: pointer;
  animation: fadeInUp 0.6s ease backwards;
}
.staff-card:nth-child(1) { animation-delay: 0.1s; }
.staff-card:nth-child(2) { animation-delay: 0.2s; }
.staff-card:nth-child(3) { animation-delay: 0.3s; }
.staff-card:nth-child(4) { animation-delay: 0.4s; }
.staff-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.staff-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.staff-card:hover .staff-avatar {
  transform: scale(1.1) rotate(5deg);
}
.staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.staff-role {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.staff-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.staff-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 400;
}
.staff-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.staff-social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.staff-social-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.footer {
  position: relative;
  z-index: 2;
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 60px 24px 24px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}
.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col h4::after {
  display: none;
}
.footer-col h4 i {
  color: var(--primary);
}
.footer-col p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  font-weight: 400;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-links i {
  font-size: 0.7rem;
  color: var(--primary);
}
.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-social-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.footer-social-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-copyright strong {
  color: var(--text);
  font-weight: 600;
}
.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.footer-bottom-right {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-bottom-link:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .staff-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-right { justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════
   PART 4 CSS - ADDITIONAL PAGES (Vote, Rules, Staff)
   ═══════════════════════════════════════════════════════════ */

.page-header {
  position: relative;
  min-height: 44vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 52px) 24px 64px;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -15%, rgba(220, 20, 60, 0.2) 0%, transparent 68%),
    radial-gradient(circle at 15% 90%, rgba(220, 20, 60, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(220, 20, 60, 0.07) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg3) 0%, var(--bg) 85%);
  z-index: -2;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(88%, 520px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.45;
}
.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  animation: fadeInUp 0.75s ease;
}
.page-header-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 18px;
  font-size: 2.1rem;
  color: #fff;
  box-shadow: 0 10px 36px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: fadeInUp 0.6s ease;
}
.page-header-icon .ffa-icon {
  font-size: 2.1rem;
}
.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 16px;
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid rgba(220, 20, 60, 0.25);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  animation: fadeInUp 0.65s ease 0.08s backwards;
}
.page-badge i {
  font-size: 0.85rem;
}
.page-title {
  font-size: clamp(2.25rem, 6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.03em;
  animation: fadeInUp 0.7s ease 0.12s backwards;
}
.page-title i {
  display: none;
}
.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 400;
  max-width: 540px;
  margin: 0 auto;
  animation: fadeInUp 0.7s ease 0.2s backwards;
}

[data-theme="dark"] .page-header::before {
  background:
    radial-gradient(ellipse 90% 70% at 50% -15%, rgba(255, 23, 68, 0.22) 0%, transparent 68%),
    radial-gradient(circle at 15% 90%, rgba(255, 23, 68, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(255, 23, 68, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg3) 0%, var(--bg) 85%);
}
[data-theme="dark"] .section-header::before {
  background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(255, 23, 68, 0.12) 0%, transparent 72%);
}
[data-theme="dark"] .page-badge,
[data-theme="dark"] .section-badge {
  background: rgba(255, 23, 68, 0.12);
  border-color: rgba(255, 23, 68, 0.28);
}

@media (max-width: 768px) {
  .page-header { min-height: auto; padding: calc(var(--nav-height) + 36px) 20px 48px; }
  .page-header-icon { width: 64px; height: 64px; font-size: 1.75rem; border-radius: 14px; }
  .section-header { padding: 32px 20px 4px; margin-bottom: 44px; }
  .section-header-icon { width: 48px; height: 48px; font-size: 1.25rem; }
}

/* ── VOTE PAGE ── */
.vote-container {
  max-width: 1000px;
  margin: 0 auto;
}
.vote-info-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin-bottom: 40px;
}
.vote-info-box i { font-size: 3rem; color: var(--primary); margin-bottom: 16px; }
.vote-info-box h3 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.vote-info-box p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; font-weight: 400; }
.vote-info-box strong { color: var(--primary); font-weight: 600; }
.vote-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.vote-site-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.vote-site-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.vote-site-icon {
  width: 60px; height: 60px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3); border-radius: 10px;
  font-size: 1.5rem; font-weight: 700; color: var(--primary);
}
.vote-site-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.vote-site-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.btn-vote {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; background: var(--primary); color: #fff;
  font-size: 0.88rem; font-weight: 600; border-radius: 8px;
  transition: background var(--transition); text-decoration: none;
}
.btn-vote:hover { background: var(--primary-dark); color: #fff; }
.vote-leaderboard {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
}
.vote-leaderboard h3 {
  font-size: 1.3rem; font-weight: 700; color: var(--text);
  margin-bottom: 24px; display: flex; align-items: center; gap: 10px;
}
.vote-leaderboard h3 i { color: #ffd700; }
.leaderboard-list { display: flex; flex-direction: column; gap: 12px; }
.leaderboard-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 10px;
  transition: border-color var(--transition);
}
.leaderboard-item:hover { border-color: var(--primary); }
.leaderboard-item .rank { font-size: 1.2rem; font-weight: 700; color: var(--primary); min-width: 40px; }
.leaderboard-item img { width: 32px; height: 32px; border-radius: 6px; }
.leaderboard-item .name { flex: 1; font-size: 1rem; font-weight: 600; color: var(--text); }
.leaderboard-item .votes { font-size: 0.9rem; color: var(--text-muted); }

/* ── RULES PAGE ── */
.rules-container { max-width: 900px; margin: 0 auto; }
.rules-intro {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px; margin-bottom: 32px; text-align: center;
}
.rules-intro i { font-size: 3rem; color: var(--primary); margin-bottom: 16px; }
.rules-intro h3 { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.rules-intro p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; font-weight: 400; }
.rules-list { display: flex; flex-direction: column; gap: 16px; }
.rule-item {
  background: var(--bg); border: 1px solid var(--border);
  border-left: 4px solid var(--primary); border-radius: 10px;
  padding: 24px; transition: border-color var(--transition);
}
.rule-item:hover { border-left-color: var(--primary-dark); }
.rule-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rule-number {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--bg3); border-radius: 8px;
  font-size: 1rem; font-weight: 700; color: var(--primary);
}
.rule-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.rule-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; padding-left: 48px; font-weight: 400; }

/* ── STAFF PAGE ── */
.staff-page-container { max-width: 1200px; margin: 0 auto; }

@media (max-width: 640px) {
  .vote-sites-grid { grid-template-columns: 1fr; }
  .leaderboard-item { flex-wrap: wrap; }
  .rule-desc { padding-left: 0; }
}


/* ═══════════════════════════════════════════════════════════
   DARK THEME
   ═══════════════════════════════════════════════════════════ */

[data-theme="dark"] {
  --primary: #ff1744;
  --primary-dark: #dc143c;
  --primary-light: #ff4569;
  --bg: #0a0a0a;
  --bg2: #0f0f0f;
  --bg3: #151515;
  --bg4: #1a1a1a;
  --text: #e8e8e8;
  --text-muted: #999;
  --text-dim: #666;
  --border: #222;
  --border-hover: #ff1744;
  --glow: rgba(255, 23, 68, 0.15);
}

[data-theme="dark"] body {
  background: 
    radial-gradient(ellipse 70% 45% at 8% 0%, rgba(255, 23, 68, 0.18), transparent 70%),
    radial-gradient(ellipse 65% 50% at 92% 62%, rgba(255, 23, 68, 0.13), transparent 72%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  background-attachment: fixed;
}

[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(255, 23, 68, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 23, 68, 0.075) 1px, transparent 1px);
  opacity: 0.55;
}
[data-theme="dark"] body::after { background: radial-gradient(circle, rgba(255, 23, 68, 0.18), transparent 68%); }

@media (prefers-reduced-motion: reduce) {
  .nav-logo, .nav-logo svg, .nav-logo span, .nav-logo strong,
  .nav-link, .nav-indicator, .store-link, .btn-discord,
  .theme-toggle, .theme-toggle i, #navbar,
  .news-card, .news-card::before, .news-image, .news-image i, .news-image::after,
  .news-content, .news-link i, #news .section-header-icon {
    transition: none !important; animation: none !important;
  }
  .nav-logo:hover, .nav-logo:hover .logo-heart--smooth,
  .nav-logo:hover .logo-heart--pixel, .nav-logo:hover .logo-layer,
  .nav-logo:hover .logo-eye, .nav-logo:hover strong,
  .store-link:hover, .btn-discord:hover, .theme-toggle:hover,
  .news-card:hover, .news-card:hover .news-image i,
  .news-card:hover .news-content, .news-card:hover .news-link i,
  #news .section-header:hover .section-header-icon {
    transform: none !important;
  }
  .news-card:hover .news-image::after { transform: translateX(-120%); }
}

[data-theme="dark"] #navbar { background: rgba(10, 10, 10, 0.85); border-bottom-color: rgba(255, 255, 255, 0.05); }
[data-theme="dark"] #navbar.scrolled { background: rgba(10, 10, 10, 0.78); box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45); }
[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active { color: var(--primary-light); }
[data-theme="dark"] .dropdown-menu { background: rgba(15, 15, 15, 0.92); border-color: rgba(255, 255, 255, 0.06); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
[data-theme="dark"] .dropdown-menu a:hover, [data-theme="dark"] .dropdown-menu button:hover { background: rgba(255, 23, 68, 0.1); }
[data-theme="dark"] .btn-ip-copy { background: rgba(255, 23, 68, 0.1); border-color: rgba(255, 23, 68, 0.25); color: var(--primary-light); }
[data-theme="dark"] .btn-ip-copy:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
[data-theme="dark"] .btn-discord:hover { background: #5865F2; border-color: #5865F2; color: #fff; }
[data-theme="dark"] .drawer { background: rgba(10, 10, 10, 0.92); }
[data-theme="dark"] .status-pill, [data-theme="dark"] .gamemode-card, [data-theme="dark"] .news-card,
[data-theme="dark"] .staff-card, [data-theme="dark"] .vote-info-box, [data-theme="dark"] .vote-site-card,
[data-theme="dark"] .vote-leaderboard, [data-theme="dark"] .rules-intro, [data-theme="dark"] .rule-item,
[data-theme="dark"] .footer-social-btn { background: var(--bg3); }
[data-theme="dark"] .leaderboard-item { background: var(--bg2); }
[data-theme="dark"] .status-pill:hover, [data-theme="dark"] .gamemode-card:hover,
[data-theme="dark"] .news-card:hover, [data-theme="dark"] .staff-card:hover,
[data-theme="dark"] .vote-site-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.4); }

@media (max-width: 640px) {
  .theme-toggle { width: 34px; height: 34px; font-size: 0.85rem; }
}

[data-theme="dark"] .hero {
  background: 
    radial-gradient(ellipse at top, rgba(255, 23, 68, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(255, 23, 68, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}
[data-theme="dark"] .hero::before { background: radial-gradient(circle at 1px 1px, rgba(255, 23, 68, 0.06) 1px, transparent 1px); background-size: 50px 50px; opacity: 0.5; }
[data-theme="dark"] .hero::after { background: radial-gradient(circle, rgba(255, 23, 68, 0.06) 0%, transparent 70%); }
[data-theme="dark"] .hero-icon svg { filter: drop-shadow(0 4px 12px rgba(255, 23, 68, 0.4)); }


/* ── PULSE ANIMATION ── */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(220, 20, 60, 0); }
}
.btn-primary { animation: pulse 2s infinite; }
.btn-primary:hover { animation: none; }

@keyframes pulseDark {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 23, 68, 0); }
}
[data-theme="dark"] .btn-primary { animation: pulseDark 2s infinite; }

.status-pill.loading .pill-main { animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.gamemode-card:hover, .news-card:hover, .staff-card:hover { box-shadow: 0 8px 24px rgba(220, 20, 60, 0.15); }
[data-theme="dark"] .gamemode-card:hover, [data-theme="dark"] .news-card:hover, [data-theme="dark"] .staff-card:hover { box-shadow: 0 8px 24px rgba(255, 23, 68, 0.2); }

* { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

@media (max-width: 768px) {
  .hero::before { animation: none; }
  /* pointer: coarse = touch device, skip hover transforms entirely */
  .gamemode-card:hover, .news-card:hover, .staff-card:hover { transform: none; }
  /* lighter card shadows on mobile */
  :is(.gamemode-card, .news-card, .staff-card, .store-card, .vote-site-card,
      .vote-info-box, .vote-leaderboard, .rules-intro, .rule-item,
      .gamemode-detail-section, .gamemode-detail-header) {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  /* disable heavy gradient text animation on mobile */
  .gradient-text { animation: none; background-position: 0% center; }
  /* disable hero pulse on mobile */
  .hero::after { animation: none; }
  /* disable float animation on hero icon */
  .hero-icon { animation: fadeInUp 0.8s ease; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero::before { animation: none; }
  body::after { filter: none; }
}

/* ═══════════════════════════════════════════════════════════
   STORE PAGE STYLES
   ═══════════════════════════════════════════════════════════ */

.store-container { max-width: 1200px; margin: 0 auto; }
.store-tabs { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; justify-content: center; }
.store-tab { display: flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.store-tab:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.store-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.store-tab i { font-size: 1rem; }
.ffa-icon { font-size: 1rem; line-height: 1; }
.gamemode-detail-icon .ffa-icon { font-size: 2.5rem; }
.store-category { display: none; animation: fadeIn 0.5s ease; }
.store-category.active { display: block; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.store-card { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 28px 24px; text-align: center; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; overflow: hidden; }
.store-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.store-card.featured { border: 2px solid var(--primary); box-shadow: 0 4px 16px rgba(220, 20, 60, 0.15); }
[data-theme="dark"] .store-card { background: var(--bg3); }
[data-theme="dark"] .store-card.featured { box-shadow: 0 4px 16px rgba(255, 23, 68, 0.2); }
.store-badge { position: absolute; top: 12px; right: 12px; padding: 4px 12px; background: var(--primary); color: #fff; font-size: 0.7rem; font-weight: 700; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.store-icon { width: 70px; height: 70px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 2rem; color: #fff; transition: transform 0.3s ease; }
.store-card:hover .store-icon { transform: scale(1.1) rotate(5deg); }
.store-title { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.store-price { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 12px; letter-spacing: -0.02em; }
.store-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; font-weight: 400; }
.store-features { list-style: none; margin-bottom: 24px; text-align: left; }
.store-features li { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.store-features li i { color: var(--primary); font-size: 0.85rem; flex-shrink: 0; }
.btn-store { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--primary); color: #fff; font-size: 0.9rem; font-weight: 600; border-radius: 8px; transition: background 0.3s ease, transform 0.3s ease; text-decoration: none; width: 100%; justify-content: center; }
.btn-store:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.store-info-container { max-width: 1200px; margin: 0 auto; }
.store-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.store-info-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; padding: 32px 24px; text-align: center; }
.store-info-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 16px; }
.store-info-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.store-info-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 768px) { .store-grid { grid-template-columns: 1fr; } .store-tabs { gap: 8px; } .store-tab { padding: 10px 16px; font-size: 0.8rem; } }

/* ═══════════════════════════════════════════════════════════
   GAMEMODE DETAIL SECTIONS
   ═══════════════════════════════════════════════════════════ */

.gamemode-detail-header { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; padding: 24px; background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; }
.gamemode-detail-icon { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #dc143c 0%, #b01030 100%); border-radius: 12px; font-size: 2.5rem; color: #fff; flex-shrink: 0; }
.gamemode-detail-title { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.gamemode-detail-subtitle { font-size: 1rem; color: var(--text-muted); }
.gamemode-detail-content { display: flex; flex-direction: column; gap: 24px; }
.gamemode-detail-section { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
[data-theme="dark"] .gamemode-detail-section { background: var(--bg3); }
.gamemode-detail-section h4 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.gamemode-detail-section h4 i { color: var(--primary); }
.gamemode-detail-section p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }
.gamemode-detail-section code { background: var(--bg3); padding: 2px 8px; border-radius: 4px; font-family: 'Courier New', monospace; color: var(--primary); font-size: 0.9rem; }
.gamemode-detail-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.gamemode-detail-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.gamemode-detail-list li i { color: var(--primary); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.leaderboard-mini { display: flex; flex-direction: column; gap: 12px; }
.gamemode-detail-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.gamemode-detail-actions .btn-primary, .gamemode-detail-actions .btn-ghost { flex: 1; min-width: 200px; justify-content: center; }
@media (max-width: 768px) { .gamemode-detail-header { flex-direction: column; text-align: center; } .gamemode-detail-title { font-size: 1.5rem; } .gamemode-detail-actions { flex-direction: column; } .gamemode-detail-actions .btn-primary, .gamemode-detail-actions .btn-ghost { width: 100%; } }

/* ═══════════════════════════════════════════════════════════
   PREMIUM UI REFINEMENT
   ═══════════════════════════════════════════════════════════ */
:root {
  --surface: color-mix(in srgb, var(--bg) 88%, transparent);
  --surface-strong: color-mix(in srgb, var(--bg3) 92%, transparent);
  --card-shadow: 0 18px 50px rgba(35, 12, 18, 0.08), 0 2px 8px rgba(35, 12, 18, 0.04);
  --card-shadow-hover: 0 26px 60px rgba(220, 20, 60, 0.17), 0 8px 20px rgba(35, 12, 18, 0.08);
}

::selection { background: var(--primary); color: #fff; }
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 3px;
}

#navbar {
  box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 65%, transparent), 0 10px 35px rgba(20, 8, 12, 0.04);
}
.nav-container { max-width: 1360px; }
.nav-logo { font-weight: 700; letter-spacing: 0.055em; }
.nav-links { gap: 5px; }
.nav-link { padding: 9px 13px; font-weight: 600; }
.nav-link.active::after {
  content: '';
  position: absolute;
  right: 13px;
  bottom: 4px;
  left: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}
.store-link.active::after { display: none; }

.hero { min-height: min(860px, 92vh); }
.hero-title { letter-spacing: -0.045em; text-wrap: balance; }
.hero-subtitle { max-width: 610px; margin-inline: auto; }
.gradient-text { text-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 20%, transparent); }
.hero-icon {
  width: 102px;
  height: 102px;
  align-items: center;
  margin: 0 auto 28px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 30px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 12%, var(--bg)), color-mix(in srgb, var(--primary) 2%, var(--bg)));
  box-shadow: 0 20px 45px color-mix(in srgb, var(--primary) 18%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.hero-status-row { gap: 14px; }
.status-pill {
  min-width: 255px;
  border-radius: 18px;
  border-color: color-mix(in srgb, var(--border) 85%, var(--primary));
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(20, 8, 12, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.status-pill .pill-icon {
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 11%, var(--bg3));
}
.btn-primary, .btn-ghost, .btn-vote, .btn-store, .gamemode-btn {
  min-height: 46px;
  border-radius: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.btn-primary, .btn-vote, .btn-store {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--primary) 28%, transparent), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover, .btn-vote:hover, .btn-store:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--primary) 36%, transparent), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-ghost {
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section { padding-block: clamp(72px, 9vw, 120px); }
.section-header { margin-bottom: clamp(38px, 5vw, 64px); }
.section-title, .page-title { text-wrap: balance; }
.section-subtitle, .page-subtitle { text-wrap: pretty; }
.section-header-icon, .page-header-icon {
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) 27%, transparent), inset 0 1px 0 rgba(255,255,255,.22);
}

:is(.gamemode-card, .news-card, .staff-card, .store-card, .vote-site-card, .vote-info-box, .vote-leaderboard, .rules-intro, .rule-item, .gamemode-detail-section, .gamemode-detail-header) {
  border-color: color-mix(in srgb, var(--border) 82%, var(--primary));
  box-shadow: var(--card-shadow);
}
:is(.gamemode-card, .news-card, .staff-card, .store-card, .vote-site-card) {
  background: var(--surface);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
:is(.gamemode-card, .news-card, .staff-card, .store-card, .vote-site-card)::after {
  content: '';
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 55%, transparent), transparent);
  opacity: 0.65;
}
.gamemode-card, .store-card, .vote-site-card { border-radius: 18px; }
.news-card { border-radius: 20px; }
.gamemode-icon, .store-icon, .vote-site-icon {
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 13%, var(--bg3)), var(--bg3));
  border-radius: 16px;
}
.news-image { background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 12%, var(--bg3)), var(--bg3)); }
.news-content { padding: 28px; }
.leaderboard-item { border-radius: 14px; }
.footer { border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent); }
.footer-social-btn { border: 1px solid color-mix(in srgb, var(--border) 85%, var(--primary)); }

@media (hover: hover) and (pointer: fine) {
  :is(.gamemode-card, .news-card, .staff-card, .store-card, .vote-site-card):hover {
    transform: translateY(-9px);
    border-color: color-mix(in srgb, var(--primary) 80%, var(--border));
    box-shadow: var(--card-shadow-hover);
  }
  .status-pill:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(220, 20, 60, 0.14); }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-height) + 64px); }
  .hero-icon { width: 84px; height: 84px; border-radius: 24px; margin-bottom: 22px; }
  .hero-icon svg { width: 64px; height: 64px; }
  .status-pill { min-width: 0; }
  .section { padding-inline: 18px; }
  .section-header { padding-inline: 0; }
  :is(.gamemode-card, .store-card, .vote-site-card, .vote-info-box, .vote-leaderboard, .rules-intro, .rule-item) { border-radius: 16px; }
}

[data-theme="dark"] {
  --surface: rgba(21, 21, 21, 0.72);
  --surface-strong: rgba(27, 27, 27, 0.9);
  --card-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.22);
  --card-shadow-hover: 0 26px 60px rgba(255, 23, 68, 0.2), 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ── NAVIGATION REFINEMENTS ── */
.nav-logo-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(220,20,60,0.1);
  border: 1px solid rgba(220,20,60,0.22);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav-logo:hover .nav-logo-mark {
  background: rgba(220,20,60,0.16);
  border-color: rgba(220,20,60,0.4);
}

.nav-link {
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: .83rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.nav-link:hover, .nav-link.active {
  background: rgba(220,20,60,0.08);
  color: var(--primary);
}
.nav-link.active::after { right: 13px; bottom: 4px; left: 13px; }
.nav-link .dropdown-arrow { transition: transform .2s ease; }
.nav-item.is-open .dropdown-arrow { transform: rotate(180deg); }

.nav-item:is(:hover, :focus-within, .is-open) .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-item .dropdown-menu {
  top: calc(100% + 8px);
  min-width: 210px;
  padding: 6px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
}
[data-theme="dark"] .nav-item .dropdown-menu {
  background: #111;
  border-color: #222;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.3);
}
.dropdown-menu a { border-radius: 8px; }

.store-link { border-radius: 9px; }

/* ── THEME TOGGLE ── */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s var(--bounce);
}
.theme-toggle:hover {
  background: rgba(220,20,60,0.08);
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(12deg);
}
.theme-toggle:active { transform: scale(0.9); }

/* ── DISCORD BUTTON ── */
.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: .84rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s var(--bounce);
}
.btn-discord i { font-size: .95rem; }
.btn-discord:hover {
  background: #5865F2;
  border-color: #5865F2;
  color: #fff;
  box-shadow: 0 4px 16px rgba(88,101,242,0.35);
  transform: translateY(-1px);
}
.btn-discord:active { transform: translateY(0) scale(0.96); }
[data-theme="dark"] .btn-discord:hover {
  background: #5865F2;
  border-color: #5865F2;
  color: #fff;
  box-shadow: 0 4px 20px rgba(88,101,242,0.45);
}

.drawer { width: min(340px, calc(100vw - 16px)); box-shadow: -8px 0 32px rgba(0,0,0,.2); }
.drawer-header { padding: 20px 20px 16px; }
.drawer-content { padding: 14px; }
.drawer ul li a { min-height: 44px; font-weight: 600; }

@media (max-width: 1024px) {
  .nav-container { padding-inline: 16px; }
}
@media (min-width: 1025px) and (max-width: 1180px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .nav-container { padding-inline: 14px; }
  .nav-logo { font-size: .9rem; }
  .nav-logo-mark { width: 28px; height: 28px; }
  .theme-toggle { width: 34px; height: 34px; }
  .drawer { width: min(320px, calc(100vw - 12px)); }
}

/* ── STAFF PAGE ── */
.staff-page-container { max-width: 1160px; }
.staff-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 58px;
  padding: 20px 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  border-radius: 20px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--primary) 10%, var(--bg)), var(--surface));
  box-shadow: var(--card-shadow);
}
.staff-intro-icon, .staff-group-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 28%, transparent);
}
.staff-intro-icon { width: 50px; height: 50px; border-radius: 15px; font-size: 1.25rem; }
.staff-intro span, .staff-group-heading p {
  display: block;
  margin-bottom: 2px;
  color: var(--primary);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.staff-intro p { color: var(--text-muted); font-size: .93rem; }
.staff-intro-count { min-width: 108px; padding-left: 20px; border-left: 1px solid var(--border); text-align: center; }
.staff-intro-count strong { display: block; color: var(--text); font-size: 1.45rem; line-height: 1.1; }
.staff-intro-count span { margin-top: 3px; color: var(--text-muted); font-size: .72rem; letter-spacing: normal; text-transform: none; }
.staff-group { margin-bottom: 60px; }
.staff-group:last-child { margin-bottom: 0; }
.staff-group-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.staff-group-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
.staff-group-heading h2 { color: var(--text); font-size: 1.45rem; line-height: 1.1; }
.staff-group-heading p { margin: 0 0 3px; }
.staff-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.staff-card { min-height: 300px; padding: 28px 22px 20px; cursor: default; }
.staff-card--owner { border-color: color-mix(in srgb, #ffd76a 46%, var(--border)); }
.staff-card--owner .staff-role { background: linear-gradient(135deg, #d69f16, #f2c94c); color: #2d2100; }
.staff-avatar { width: 92px; height: 92px; margin-bottom: 14px; border-width: 3px; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 22%, transparent); }
.staff-name { margin: 8px 0 8px; font-size: 1.16rem; letter-spacing: -.02em; }
.staff-role { padding: 5px 11px; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.staff-bio { min-height: 48px; font-size: .84rem; line-height: 1.6; }
.staff-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  color: var(--text-dim);
  font-size: .71rem;
  font-weight: 650;
}
.staff-card-footer i { color: var(--primary); }

/* ── RANK STORE ── */
.store-legacy-catalog { display: none; }
.store-rank-intro { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.store-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.store-rank-intro h2 { color: var(--text); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.04em; }
.store-rank-intro p { max-width: 560px; margin: 14px auto 0; color: var(--text-muted); }
.rank-plan-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.rank-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 23px 18px 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 86%, var(--primary));
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.rank-plan::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--rank-accent, var(--primary)); }
.rank-plan--popular { --rank-accent: #b97942; }
.rank-plan--famous { --rank-accent: #aeb9c7; }
.rank-plan--king { --rank-accent: #f1c34d; }
.rank-plan--lifea { --rank-accent: #54d6e8; }
.rank-plan--custom { --rank-accent: #b988ff; }
.rank-plan--featured { transform: translateY(-10px); border-color: color-mix(in srgb, #f1c34d 70%, var(--border)); box-shadow: 0 24px 55px rgba(220, 20, 60, .18); }
.rank-plan-topline { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: .68rem; font-weight: 700; }
.rank-medal { font-size: 1.1rem; }
.rank-plan h3 { margin: 16px 0 5px; color: var(--text); font-size: 1.3rem; }
.rank-price { margin-bottom: 18px; color: var(--primary); }
.rank-price strong { font-size: 2rem; letter-spacing: -.06em; }
.rank-price span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.rank-plan ul { display: flex; flex: 1; flex-direction: column; gap: 9px; margin: 0 0 20px; list-style: none; }
.rank-plan li { display: flex; align-items: flex-start; gap: 8px; color: var(--text-muted); font-size: .78rem; line-height: 1.35; }
.rank-plan li i { margin-top: 2px; color: var(--rank-accent, var(--primary)); font-size: .7rem; }
.rank-plan .btn-store { min-height: 40px; padding: 9px 11px; font-size: .75rem; }
.rank-plan-badge { position: absolute; top: 13px; right: 12px; padding: 4px 8px; border-radius: 999px; background: #f1c34d; color: #3a2800; font-size: .58rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 1120px) { .rank-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rank-plan--featured { transform: none; } }
@media (max-width: 760px) {
  .staff-intro { grid-template-columns: auto 1fr; padding: 18px; }
  .staff-intro-count { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 0 0; border-top: 1px solid var(--border); border-left: 0; }
  .staff-intro-count strong, .staff-intro-count span { display: inline; margin: 0; }
  .rank-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) { .rank-plan-grid { grid-template-columns: 1fr; } .staff-card { min-height: 0; } }

/* ── HOME: FFA ADVENTURE SHOWCASE ── */
.adventure-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--border));
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.adventure-main {
  position: relative;
  padding: clamp(30px, 5vw, 52px);
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 38%),
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, var(--bg)), transparent 65%);
}
.adventure-main::after {
  content: '⚔';
  position: absolute;
  right: -16px;
  bottom: -76px;
  color: color-mix(in srgb, var(--primary) 8%, transparent);
  font-size: 19rem;
  line-height: 1;
  transform: rotate(-17deg);
  pointer-events: none;
}
.adventure-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 19px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 27%, transparent);
  font-size: 2rem;
}
.adventure-live { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.adventure-live span { width: 7px; height: 7px; border-radius: 50%; background: #37c976; box-shadow: 0 0 0 5px rgba(55,201,118,.12); }
.adventure-main h3 { position: relative; z-index: 1; margin: 10px 0 10px; color: var(--text); font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.05em; }
.adventure-main > p { position: relative; z-index: 1; max-width: 560px; color: var(--text-muted); line-height: 1.7; }
.adventure-feature-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 30px 0; }
.adventure-feature-grid > div { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px; border: 1px solid color-mix(in srgb, var(--border) 72%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--bg) 62%, transparent); }
.adventure-feature-grid i { color: var(--primary); font-size: .94rem; }
.adventure-feature-grid span { color: var(--text-dim); font-size: .64rem; line-height: 1.2; }
.adventure-feature-grid strong { color: var(--text); font-size: .7rem; }
.adventure-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 11px; }
.adventure-actions .btn-primary, .adventure-actions .btn-ghost { min-width: 180px; justify-content: center; }
.adventure-guide { padding: clamp(28px, 4vw, 42px) clamp(22px, 3vw, 34px); border-left: 1px solid color-mix(in srgb, var(--border) 75%, transparent); background: color-mix(in srgb, var(--bg3) 58%, transparent); }
.adventure-guide-heading { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: .9rem; font-weight: 800; }
.adventure-guide-heading i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.adventure-steps { display: flex; flex-direction: column; gap: 24px; margin: 30px 0; list-style: none; counter-reset: steps; }
.adventure-steps li { display: flex; align-items: flex-start; gap: 12px; }
.adventure-steps li > span { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); font-size: .65rem; font-weight: 900; }
.adventure-steps strong { display: block; color: var(--text); font-size: .84rem; }
.adventure-steps small { display: block; margin-top: 3px; color: var(--text-muted); font-size: .72rem; }
.adventure-steps code { padding: 1px 5px; border-radius: 5px; background: color-mix(in srgb, var(--primary) 11%, transparent); color: var(--primary); font-size: .7rem; }
.adventure-tip { display: flex; gap: 9px; padding: 12px; border: 1px solid color-mix(in srgb, #f1c34d 34%, var(--border)); border-radius: 12px; background: color-mix(in srgb, #f1c34d 8%, transparent); color: var(--text-muted); font-size: .73rem; line-height: 1.5; }
.adventure-tip i { color: #d99d00; margin-top: 2px; }
.adventure-tip strong { color: var(--text); }
@media (max-width: 840px) { .adventure-showcase { grid-template-columns: 1fr; } .adventure-guide { border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent); border-left: 0; } .adventure-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (max-width: 600px) { .adventure-feature-grid { grid-template-columns: repeat(2, 1fr); } .adventure-actions { flex-direction: column; } .adventure-actions .btn-primary, .adventure-actions .btn-ghost { width: 100%; } .adventure-steps { grid-template-columns: 1fr; gap: 17px; margin: 24px 0; } }

/* ── LIFEA TIERS ── */
.tier-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.tier-sidebar { padding: 22px 14px; border-right: 1px solid color-mix(in srgb, var(--border) 76%, transparent); background: color-mix(in srgb, var(--bg3) 58%, transparent); }
.tier-sidebar-heading { display: flex; align-items: center; gap: 9px; padding: 0 8px 17px; color: var(--text); font-size: .83rem; font-weight: 800; }
.tier-sidebar-heading i { color: var(--primary); }
.tier-tabs { display: flex; flex-direction: column; gap: 4px; }
.tier-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 700;
  text-align: left;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--bounce);
}
.tier-tab i { width: 18px; color: var(--text-dim); text-align: center; }
.tier-tab:hover { color: var(--text); background: color-mix(in srgb, var(--bg) 65%, transparent); }
.tier-tab.active { border-color: color-mix(in srgb, var(--primary) 24%, transparent); background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }
.tier-tab.active i { color: var(--primary); }
.tier-sidebar-note { display: flex; gap: 8px; margin: 22px 8px 0; padding: 12px 0 0; border-top: 1px solid color-mix(in srgb, var(--border) 68%, transparent); color: var(--text-dim); font-size: .68rem; line-height: 1.5; }
.tier-sidebar-note i { margin-top: 2px; color: var(--primary); }
.tier-content { min-width: 0; padding: clamp(22px, 4vw, 38px); }
.tier-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.tier-eyebrow { display: block; margin-bottom: 4px; color: var(--primary); font-size: .65rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.tier-toolbar h2 { color: var(--text); font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: -.045em; }
.tier-search { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: color-mix(in srgb, var(--bg3) 60%, transparent); color: var(--text-dim); font: inherit; font-size: .72rem; }
.tier-search i { color: var(--primary); }
.tier-board-intro { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--primary) 5%, transparent); color: var(--text-muted); font-size: .78rem; line-height: 1.5; }
.tier-board-intro i { color: var(--primary); }
.tier-rows { display: flex; flex-direction: column; gap: 7px; }
.tier-row { --tier-color: var(--primary); display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 67px; padding: 10px 14px 10px 10px; border: 1px solid color-mix(in srgb, var(--tier-color) 29%, var(--border)); border-left: 4px solid var(--tier-color); border-radius: 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--tier-color) 9%, transparent), transparent 48%); }
.tier-row--ht1 { --tier-color: #f1c34d; }
.tier-row--ht2 { --tier-color: #d7a841; }
.tier-row--ht3 { --tier-color: #c68143; }
.tier-row--lt1 { --tier-color: #9f78ea; }
.tier-row--lt2 { --tier-color: #658ce7; }
.tier-row--lt3 { --tier-color: #4bb6d0; }
.tier-row--lt4 { --tier-color: #51aa7d; }
.tier-row--lt5 { --tier-color: #8a939f; }
.tier-label { display: flex; align-items: center; gap: 9px; }
.tier-label strong { display: grid; place-items: center; min-width: 46px; height: 42px; border-radius: 9px; background: var(--tier-color); color: #fff; font-size: .86rem; letter-spacing: -.02em; box-shadow: 0 5px 14px color-mix(in srgb, var(--tier-color) 34%, transparent); }
.tier-label span { color: var(--text); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.tier-row p { color: var(--text-muted); font-size: .75rem; line-height: 1.45; }
.tier-status { padding: 5px 8px; border-radius: 999px; background: color-mix(in srgb, var(--tier-color) 13%, transparent); color: var(--tier-color); font-size: .61rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tier-empty { display: grid; justify-items: center; padding: 62px 22px; border: 1px dashed color-mix(in srgb, var(--primary) 30%, var(--border)); border-radius: 16px; text-align: center; }
.tier-empty > i { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 15px; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); font-size: 1.25rem; }
.tier-empty h3 { color: var(--text); font-size: 1rem; }
.tier-empty p { max-width: 300px; margin: 7px 0 18px; color: var(--text-muted); font-size: .8rem; }
.tier-empty .btn-primary { min-height: 40px; font-size: .75rem; }
@media (max-width: 760px) { .tier-layout { grid-template-columns: 1fr; } .tier-sidebar { border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 76%, transparent); } .tier-tabs { display: grid; grid-template-columns: repeat(2, 1fr); } .tier-sidebar-note { display: none; } }
@media (max-width: 520px) { .tier-content { padding: 20px 14px; } .tier-toolbar { align-items: flex-start; flex-direction: column; gap: 11px; } .tier-search { width: 100%; justify-content: center; } .tier-row { grid-template-columns: 1fr auto; gap: 8px 12px; } .tier-row p { grid-column: 1 / -1; } .tier-label { gap: 8px; } .tier-status { grid-column: 2; grid-row: 1; } }

/* ── SERVER IP CONTROL ── */
.btn-ip-copy {
  min-width: 178px;
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  text-align: left;
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 11%, var(--bg)), color-mix(in srgb, var(--primary) 4%, var(--bg)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 5px 15px rgba(220, 20, 60, .07);
}
.ip-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 0 3px rgba(53, 208, 127, .13), 0 0 12px rgba(53, 208, 127, .55);
}
.ip-copy-details {
  display: grid;
  min-width: 0;
  gap: 1px;
}
.ip-label {
  color: var(--text-dim);
  font-size: .57rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.btn-ip-copy .ip-text {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-ip-copy > i {
  color: var(--primary);
  font-size: .75rem;
  transition: transform .25s var(--bounce), color .25s ease;
}
.btn-ip-copy:hover .ip-text, .btn-ip-copy:hover .ip-label { color: #fff; }
.btn-ip-copy:hover .ip-status { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.btn-ip-copy:hover > i { color: #fff; transform: scale(1.16); }

/* ── LANDING HERO VISUAL ── */
.hero {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 70% at 79% 47%, rgba(220, 20, 60, .16), transparent 72%),
    radial-gradient(ellipse 45% 55% at 18% 3%, rgba(220, 20, 60, .13), transparent 70%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg2) 52%, color-mix(in srgb, var(--bg2) 78%, var(--primary)) 100%);
}
.hero::before {
  z-index: 0;
  opacity: .82;
  background-image:
    linear-gradient(rgba(220, 20, 60, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 20, 60, .065) 1px, transparent 1px),
    radial-gradient(circle at 72% 42%, rgba(220, 20, 60, .18), transparent 44%);
  background-size: 56px 56px, 56px 56px, auto;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.8), transparent 93%);
}
.hero::after { z-index: 0; opacity: .85; }
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  right: clamp(-110px, 2vw, 30px);
  width: min(48vw, 680px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 38px color-mix(in srgb, var(--primary) 5%, transparent), 0 0 0 108px color-mix(in srgb, var(--primary) 3%, transparent);
  transform: translateY(-50%);
}
.hero-orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  border-radius: 50%;
}
.hero-orbit-one { top: 18%; right: 8%; width: min(38vw, 520px); aspect-ratio: 1; }
.hero-orbit-two { right: 22%; bottom: 13%; width: min(20vw, 250px); aspect-ratio: 1; border-style: dashed; opacity: .7; }
.hero-block {
  position: absolute;
  width: clamp(54px, 7vw, 105px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.3), transparent 36%),
    linear-gradient(145deg, var(--primary-light), var(--primary-dark));
  box-shadow: 0 20px 40px rgba(220, 20, 60, .25), inset 0 1px 0 rgba(255,255,255,.3);
  transform: rotate(18deg);
}
.hero-block::after {
  content: '';
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
}
.hero-block-one { top: 22%; right: 17%; }
.hero-block-two { right: 35%; bottom: 19%; width: clamp(38px, 4.5vw, 72px); opacity: .75; transform: rotate(-20deg); }
.hero-block-three { top: 56%; right: 5%; width: clamp(32px, 3.5vw, 58px); opacity: .65; transform: rotate(34deg); }
.hero-spark {
  position: absolute;
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px 5px color-mix(in srgb, var(--primary) 66%, transparent);
}
.hero-spark-one { top: 27%; right: 41%; }
.hero-spark-two { right: 12%; bottom: 35%; width: 5px; opacity: .75; }

@media (max-width: 768px) {
  .hero-visual { opacity: .45; }
  .hero-visual::before { right: -180px; width: 620px; }
  .hero-block-one { right: 7%; top: 17%; }
  .hero-block-two { right: 28%; bottom: 12%; }
  .hero-block-three, .hero-orbit-two { display: none; }
}

@media (max-width: 640px) {
  .btn-ip-copy {
    min-width: 36px;
    width: 36px;
    min-height: 36px;
    padding: 0;
    place-items: center;
    gap: 0;
  }
  .btn-ip-copy .ip-copy-details { display: none; }
  .btn-ip-copy > i { display: block; color: var(--primary); }
  .ip-status { display: none; }
  .hero-visual { opacity: .28; }
  .hero-visual::before { right: -250px; }
  .hero-block-one { right: -3%; top: 18%; width: 92px; }
  .hero-block-two { right: 21%; bottom: 11%; }
}
/* ═══════════════════════════════════════════════════════════
   EXTREME SMOOTHING + CLEANER UI UPGRADE
   ═══════════════════════════════════════════════════════════ */

:root {
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);          /* silky ease-out-expo  */
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);         /* easy ease-out-quart  */
  --ease-glass: cubic-bezier(0.34, 1.56, 0.64, 1);     /* playful overshoot    */
}

/* Ultra-smooth text rendering + kerning */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
h1, h2, h3, h4, .hero-title, .section-title, .gradient-text, .stat-num {
  text-rendering: optimizeLegibility;
  letter-spacing: -0.015em;
}

/* Cleaner text selection */
::selection {
  background: var(--primary);
  color: #fff;
  text-shadow: none;
}

/* Silky timing on every interactive element */
a, button, .nav-link, .store-link, .btn-primary, .btn-ghost, .btn-discord,
.btn-ip-copy, .theme-toggle, .gamemode-btn, .btn-store, .vote-btn, .btn-vote,
.staff-social-link, .footer-social-btn, .store-tab, .tier-tab,
.drawer ul li a, .drawer-close, .drawer-ip-btn, .hamburger,
.status-pill, .discord-pill, .leaderboard-item, .news-card .news-link i {
  transition-timing-function: var(--ease-expo);
}

/* Cards — unified smooth motion (keeps reveal opacity/transform working) */
.gamemode-card, .news-card, .staff-card, .store-card {
  transition:
    transform 0.6s var(--ease-expo),
    opacity 0.6s var(--ease-expo),
    border-color 0.4s var(--ease-quart),
    box-shadow 0.6s var(--ease-expo),
    background-color 0.45s var(--ease-quart);
}

/* Centered, softer panel corners */
.gamemode-card, .news-card, .staff-card, .store-card, .status-pill,
.vote-site-card, .vote-info-box, .rules-intro, .rule-item, .store-info-card,
.gamemode-detail-header, .gamemode-detail-section, .settings-about-card,
.leaderboard, .tier-board {
  border-radius: 16px;
}

/* Refined layered hover shadows instead of flat heavy ones */
@media (hover: hover) and (min-width: 769px) {
  .gamemode-card:hover, .store-card:hover {
    transform: translateY(-8px);
    box-shadow:
      0 24px 48px -16px rgba(220, 20, 60, 0.28),
      0 10px 24px -12px rgba(0, 0, 0, 0.12);
  }
  .news-card:hover, .staff-card:hover {
    transform: translateY(-10px);
    box-shadow:
      0 32px 56px -18px rgba(220, 20, 60, 0.30),
      0 12px 28px -12px rgba(0, 0, 0, 0.14);
  }
  [data-theme="dark"] .gamemode-card:hover, [data-theme="dark"] .news-card:hover,
  [data-theme="dark"] .staff-card:hover, [data-theme="dark"] .store-card:hover {
    box-shadow:
      0 28px 52px -12px rgba(0, 0, 0, 0.65),
      0 8px 24px -8px rgba(255, 23, 68, 0.16);
  }
}

/* Smooth press feedback on every button */
.btn-primary:active, .btn-ghost:active, .btn-discord:active,
.gamemode-btn:active, .btn-store:active, .vote-btn:active, .btn-vote:active,
.store-tab:active, .tier-tab:active, .theme-toggle:active {
  transform: translateY(0) scale(0.96);
}

/* Accessible + clean focus rings */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}
a:focus-visible, button:focus-visible {
  box-shadow: 0 0 0 5px var(--glow);
}

/* Slim, rounded, on-brand scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary) 40%, var(--border));
  background-clip: content-box;
  border: 2px solid transparent;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  background-clip: content-box;
}

/* Smooth theme switching (only after first paint) */
html.theme-ready, html.theme-ready body {
  transition: background-color 0.5s var(--ease-quart), color 0.45s var(--ease-quart);
}

/* Glass layers gently wiped on hover → cleaner depth */
.status-pill, .btn-discord {
  will-change: transform, box-shadow, background-color;
}
.status-pill:hover, .discord-pill:hover {
  box-shadow: 0 12px 32px -10px rgba(220, 20, 60, 0.25), 0 2px 6px -2px rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .status-pill:hover, [data-theme="dark"] .discord-pill:hover {
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.7), 0 4px 12px -4px rgba(255, 23, 68, 0.18);
}

/* Cleaner reveal animation — longer, silkier arrival */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    transition: opacity 0.75s var(--ease-expo), transform 0.75s var(--ease-expo);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Softer icon lift + glow */
.gamemode-icon, .store-icon, .section-header-icon {
  transition: transform 0.5s var(--ease-glass), box-shadow 0.45s var(--ease-quart), background-color 0.4s var(--ease-quart);
}
.gamemode-card:hover .gamemode-icon, .store-card:hover .store-icon {
  transform: scale(1.1) rotate(5deg);
}
.section-header:hover .section-header-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 10px 30px var(--glow);
}

/* Hero typography polish */
.hero-title { letter-spacing: -0.02em; }
.gradient-text { text-shadow: 0 8px 32px rgba(220, 20, 60, 0.22); }

/* Smooth copy button + toast micro-polish */
.btn-ip-copy { transition-timing-function: var(--ease-expo); backface-visibility: hidden; }
#toast { transition-timing-function: var(--ease-expo); }

/* Rule sections & settings panes glide in naturally */
.rule-item, .store-info-card, .vote-site-card {
  transition: transform 0.4s var(--ease-expo), border-color 0.35s var(--ease-quart),
              box-shadow 0.5s var(--ease-expo), background-color 0.4s var(--ease-quart);
}
.rule-item:hover, .store-info-card:hover, .vote-site-card:hover {
  transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE + SMOOTH DEVICE UPGRADE
   ═══════════════════════════════════════════════════════════ */

/* ── Overflow safety + fluid media everywhere ── */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a { touch-action: manipulation; } /* kill 300ms tap delay on mobile */
img, svg, video, canvas, iframe { max-width: 100%; height: auto; }
textarea, input, select, button { font-family: inherit; font-size: 100%; }
.hero-title, .hero-subtitle, .section-title, .section-subtitle, .pill-sub,
.ip-text, .ip-label, .tier-label span, .footer p, .rules-intro p, code {
  overflow-wrap: anywhere;
}
.hero-content, .hero-status-row, .hero-btns { width: 100%; }

/* ── Fluid horizontal padding on main sections ── */
.section, .hero {
  padding-inline: clamp(16px, 4vw, 24px);
}

/* ── Status pill: allow it to shrink on small screens (fix overflow) ── */
@media (max-width: 1024px) {
  .status-pill { min-width: 0; }
  /* scroll attachment is much faster on mobile — no GPU compositing layer */
  body { background-attachment: scroll; }
  body::before, body::after { position: absolute; }
  /* reduce backdrop-filter cost on low-end devices */
  #navbar, .nav-container, .drawer, .drawer-overlay,
  .status-pill, .btn-ghost, .nav-item .dropdown-menu {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  /* kill will-change on mobile to free GPU memory */
  .status-pill, .btn-discord { will-change: auto; }
}

/* ── Fluid stat numbers ── */
.stat-num, .stat-item > div:nth-child(2) { font-size: clamp(1.5rem, 4vw, 2rem); }
.stat-item i { font-size: clamp(1.4rem, 4vw, 2rem); }
.stats-bar { padding-inline: clamp(16px, 4vw, 24px); }

/* ── Consistent, comfy tap targets ── */
.btn-primary, .btn-ghost { min-height: 48px; }
.btn-discord, .btn-ip-copy, .btn-store, .btn-vote, .gamemode-btn { min-height: 40px; }

/* ── Small phones ── */
@media (max-width: 520px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 56px;
  }
  .hero-title { font-size: clamp(2rem, 8.5vw, 2.5rem); line-height: 1.15; }
  .hero-icon svg { width: 64px; height: 64px; }
  .hero-subtitle { margin-bottom: 28px; font-size: 1rem; }
  .hero-status-row { gap: 10px; }
  .status-pill { padding: 14px 16px; gap: 12px; }
  .pill-icon { width: 42px; height: 42px; font-size: 1.05rem; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-header { padding-inline: 10px; }
  .footer-grid { gap: 28px; }
}

/* ── Very small phones (< 400px) ── */
@media (max-width: 400px) {
  .nav-logo { font-size: .85rem; }
  .nav-right { gap: 6px; }
  .theme-toggle { width: 32px; height: 32px; }
  .btn-ip-copy { padding-inline: 8px; }
  .hero-btns { gap: 10px; }
  .drawer { width: 100vw; }
}

/* ── Touch devices: widen tap targets, ease nav links ── */
@media (pointer: coarse) {
  .theme-toggle, .hamburger, .drawer-close, .btn-store, .btn-vote,
  .gamemode-btn, .store-tab, .tier-tab, .drawer ul li a {
    min-height: 44px;
  }
  .drawer ul li a { min-height: 48px; }
  .store-tab, .tier-tab { align-items: center; }
  .nav-right { gap: 8px; }
}

/* ── Tablets (portrait) nicer footer ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── iOS safe-area insets (notched devices) ── */
.drawer { height: 100dvh; } /* dynamic viewport: avoids mobile address-bar overlap */
@supports (padding-top: max(0px)) {
  .drawer { padding-bottom: env(safe-area-inset-bottom); }
  #toast { bottom: max(28px, env(safe-area-inset-bottom)); }
}

/* ── POTATO PHONE OPTIMIZATIONS (very low-end) ── */
/* Triggered by: small screen + coarse pointer (touch) */
@media (max-width: 640px) and (pointer: coarse) {
  /* kill ALL backdrop-filter — biggest perf win on low-end */
  * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  /* simplify body background */
  body {
    background: var(--bg) !important;
    background-attachment: scroll !important;
  }
  body::before, body::after { display: none; }
  /* no card animations */
  .gamemode-card, .news-card, .staff-card, .store-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  /* no hero visual decorations */
  .hero-visual { display: none; }
  /* no gradient text shimmer */
  .gradient-text {
    animation: none;
    background: var(--primary);
    -webkit-background-clip: text;
    background-clip: text;
  }
  /* no btn pulse */
  .btn-primary { animation: none; }
  /* simpler nav container */
  .nav-container {
    background: var(--bg) !important;
    box-shadow: 0 1px 0 var(--border) !important;
    border: none !important;
  }
}
