/* =================================================================
   MCFans.de - Components
   ================================================================= */

/* ============== LOADER ============== */
.loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, #0a0e1a 0%, #000 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.loader.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}
.loader-grid {
  position: relative;
  width: min(60vw, 400px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
#loader-canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.loader-progress {
  margin-top: 1.5rem;
  width: min(60vw, 400px);
  text-align: center;
}
.loader-progress-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px var(--cyan);
  margin-bottom: 0.5rem;
}
.loader-progress-text {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--text-2);
  letter-spacing: 0.1em;
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Floating voxel blocks in hero */
.hero-blocks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.hb {
  position: absolute;
  width: 60px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
  opacity: 0.85;
  will-change: transform;
}
.hb-diamond  { top: 18%; left: 8%;  width: 80px;  height: 80px;  animation: blockFloat1 14s ease-in-out infinite; }
.hb-emerald  { top: 70%; left: 12%; width: 50px;  height: 50px;  animation: blockFloat2 18s ease-in-out infinite; animation-delay: -3s; }
.hb-tnt      { top: 25%; right: 10%;width: 70px;  height: 70px;  animation: blockFloat3 16s ease-in-out infinite; animation-delay: -1s; }
.hb-gold     { top: 60%; right: 18%;width: 40px;  height: 40px;  animation: blockFloat1 20s ease-in-out infinite; animation-delay: -5s; }
.hb-grass    { top: 80%; left: 40%; width: 90px;  height: 90px;  animation: blockFloat2 22s ease-in-out infinite; animation-delay: -2s; }
.hb-redstone { top: 45%; left: 22%; width: 36px;  height: 36px;  animation: blockFloat3 12s ease-in-out infinite; animation-delay: -4s; }
.hb-book     { top: 30%; left: 65%; width: 50px;  height: 50px;  animation: blockFloat1 17s ease-in-out infinite; animation-delay: -6s; }
.hb-creeper  { top: 65%; right: 35%;width: 65px;  height: 65px;  animation: blockFloat2 19s ease-in-out infinite; animation-delay: -7s; }

.hb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  mask-image: inherit;
  opacity: 0.6;
  filter: blur(20px);
  z-index: -1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
  animation: particleRise linear infinite;
  opacity: 0;
}
@keyframes particleRise {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

/* Hero nav */
.hero-nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo-img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.4));
  transition: transform 0.3s ease;
}
.nav-logo:hover .nav-logo-img { transform: scale(1.05) rotate(-2deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  background: rgba(10, 14, 26, 0.65);
  padding: 0.5rem 0.5rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-links a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 99px;
  transition: all 0.25s ease;
  position: relative;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(0, 229, 255, 0.1);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.nav-sound {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 14, 26, 0.65);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-2);
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-sound:hover { color: var(--cyan); border-color: var(--cyan); }
.nav-sound .sound-on { display: inline; }
.nav-sound .sound-off { display: none; }
.nav-sound[data-on="true"] .sound-on { display: none; }
.nav-sound[data-on="true"] .sound-off { display: inline; }

/* Hero content */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem var(--pad);
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: heroRise 0.8s ease 0.2s forwards;
}

.hero-title {
  margin: 0 0 1.5rem;
  line-height: 1;
}
.hero-logo {
  display: inline-block;
  position: relative;
  perspective: 1000px;
}
.hero-logo-img {
  width: clamp(280px, 50vw, 560px);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 30px rgba(0, 229, 255, 0.3));
  transition: transform 0.3s ease;
  will-change: transform;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--text-2);
  margin-bottom: 2.5rem;
  max-width: 640px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  animation: heroRise 0.8s ease 0.5s forwards;
}
.hero-tagline-sep {
  color: var(--text-3);
  opacity: 0.5;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
  opacity: 0;
  animation: heroRise 0.8s ease 0.7s forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-3);
  text-transform: uppercase;
  opacity: 0;
  animation: heroRise 0.8s ease 1s forwards;
}
.scroll-arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  position: relative;
  animation: scrollBounce 1.6s ease-in-out infinite;
}

/* Hero stats */
.hero-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(10, 14, 26, 0.7);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  animation: heroRise 0.8s ease 1.2s forwards;
}
.hero-stat {
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: 0; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  background: linear-gradient(180deg, #fff 30%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.25rem;
  line-height: 1;
  min-height: 1em;
  transition: transform 0.3s ease;
}
.hero-stat-num.bump { animation: countBump 0.4s ease; }
@keyframes countBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); color: var(--green); -webkit-text-fill-color: var(--green); }
  100% { transform: scale(1); }
}
.hero-stat-label {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 99px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  white-space: nowrap;
  user-select: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: #06080F;
  box-shadow: 0 0 0 0 rgba(124, 252, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--green);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(124, 252, 0, 0.6), 0 12px 28px rgba(0, 0, 0, 0.5);
  filter: brightness(1.15);
}
.btn-primary:hover::before {
  animation: btnShine 0.6s ease;
}
.btn-ghost {
  background: rgba(10, 14, 26, 0.5);
  color: var(--cyan);
  border-color: var(--border-hi);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(0, 229, 255, 0.1);
  color: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
}
.btn-large { padding: 1.2rem 2.2rem; font-size: 1.1rem; }
.btn-icon { font-size: 1.2em; line-height: 1; }
.btn-arrow {
  transition: transform 0.25s ease;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============== SERVERS ============== */
.section-servers .section-bg {
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(124, 252, 0, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(0, 229, 255, 0.08), transparent 70%);
}

.server-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.6rem 1.2rem;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 99px;
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all 0.25s ease;
}
.filter-btn:hover {
  color: #fff;
  border-color: var(--cyan);
}
.filter-btn.active {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.server-card {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 26, 44, 0.85), rgba(10, 14, 26, 0.7));
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  transform: perspective(1000px);
  will-change: transform;
  cursor: default;
  overflow: hidden;
  isolation: isolate;
}
.server-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.server-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--accent), transparent);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.server-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-glow);
}
.server-card:hover::after { opacity: 1; }

.server-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.server-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.server-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.4);
}
.server-status-badge.online {
  color: var(--ok);
  border: 1px solid var(--ok);
}
.server-status-badge.offline {
  color: var(--err);
  border: 1px solid var(--err);
}

.server-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.25rem;
}
.server-kind {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.server-desc {
  color: var(--text-2);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  min-height: 2.7em;
}

.server-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.server-tag {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-2);
}

.server-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.server-players {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
}
.server-players-max {
  color: var(--text-3);
  font-size: 0.85rem;
  font-weight: 400;
}
.server-players-bar {
  position: relative;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.server-players-bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  width: 0%;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px var(--accent);
}
.server-version {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
}

.server-heads {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  min-height: 36px;
}
.server-head {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid var(--bg-2);
  background-color: var(--bg-3);
  background-size: cover;
  background-position: center;
  margin-right: -8px;
  transition: transform 0.25s ease, z-index 0s;
  position: relative;
  image-rendering: pixelated;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.server-head:hover {
  transform: translateY(-4px) scale(1.15);
  z-index: 5;
  border-color: var(--cyan);
}
.server-head-more {
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-color: var(--text-3);
}

.server-card.offline {
  filter: grayscale(0.5) brightness(0.7);
}
.server-card.offline .server-icon { opacity: 0.5; }

/* ============== PLAYERS ============== */
.section-players .container {
  position: relative;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.player-col {
  background: linear-gradient(180deg, rgba(20, 26, 44, 0.7), rgba(10, 14, 26, 0.5));
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 1.25rem;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}
.player-col::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.player-col:hover { transform: translateY(-4px); border-color: var(--accent); }

.player-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.player-col-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
}
.player-col-count {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: var(--accent);
  color: #000;
  border-radius: 99px;
}
.player-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 40px;
}
.player-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}
.player-item:hover { background: rgba(0, 229, 255, 0.1); }
.player-head {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  image-rendering: pixelated;
  flex-shrink: 0;
  background-color: var(--bg-3);
}
.player-name { color: #fff; }
.player-empty {
  color: var(--text-3);
  font-style: italic;
  font-size: 0.85rem;
  padding: 0.5rem;
  text-align: center;
}

/* ============== CONSOLE ============== */
.section-console .container { max-width: 1080px; }

.console-frame {
  background: #04060B;
  border: 1px solid var(--border);
  border-radius: var(--rad);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border), 0 30px 60px rgba(0, 0, 0, 0.5);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #111726, #0a0e1a);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-pixel);
  font-size: 0.7rem;
}
.console-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.console-dot.red    { background: #FF5F56; }
.console-dot.yellow { background: #FFBD2E; }
.console-dot.green  { background: #27C93F; }
.console-title {
  flex: 1;
  text-align: center;
  color: var(--text-2);
  letter-spacing: 0.1em;
}
.console-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ok);
  font-size: 0.65rem;
}
.console-status .status-dot { width: 8px; height: 8px; }

.console-body {
  height: 380px;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  scroll-behavior: smooth;
}
.console-line {
  display: flex;
  gap: 0.6rem;
  padding: 0.15rem 0;
  word-break: break-word;
  animation: letterReveal 0.3s ease both;
}
.console-ts { color: var(--text-3); flex-shrink: 0; }
.console-tag { flex-shrink: 0; font-weight: 600; }
.console-tag.join  { color: var(--ok); }
.console-tag.leave { color: var(--err); }
.console-tag.chat  { color: var(--cyan); }
.console-tag.system{ color: var(--gold); }
.console-tag.switch{ color: var(--magenta); }
.console-msg { color: var(--text-2); }
.console-player { color: #fff; font-weight: 600; }
.console-server { color: var(--magenta); }
.console-wait { color: var(--text-3); font-style: italic; }

/* ============== ONLYPW ============== */
.section-onlypw {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(255, 0, 229, 0.06), transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 20%, rgba(0, 229, 255, 0.08), transparent 70%);
}

.onlypw-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.onlypw-tool {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--accent, var(--cyan));
  border-radius: 12px;
  opacity: 0.15;
  filter: blur(2px);
  animation: toolFloat 6s ease-in-out infinite;
}
.tool-pickaxe  { top: 10%; left: 8%;  --accent: var(--gold);     animation-delay: 0s; }
.tool-sword    { top: 60%; left: 5%;  --accent: var(--cyan);     animation-delay: -1s; }
.tool-redstone { top: 30%; right: 10%;--accent: var(--red);      animation-delay: -2s; }
.tool-diamond  { top: 75%; right: 12%;--accent: var(--green);    animation-delay: -3s; }

.onlypw-wrap {
  display: flex;
  justify-content: center;
}

.onlypw-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, rgba(20, 26, 44, 0.9), rgba(10, 14, 26, 0.7));
  border: 1px solid var(--border-hi);
  border-radius: var(--rad-lg);
  padding: 2.5rem;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
}
.onlypw-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, var(--cyan), var(--magenta), var(--gold), var(--cyan));
  z-index: -2;
  animation: spin 8s linear infinite;
  filter: blur(20px);
  opacity: 0.4;
}
.onlypw-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: linear-gradient(180deg, rgba(20, 26, 44, 0.95), rgba(10, 14, 26, 0.85));
  border-radius: inherit;
  z-index: -1;
}

.onlypw-card-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.onlypw-avatar {
  position: relative;
  width: 140px;
  height: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.onlypw-avatar img {
  max-height: 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 24px rgba(0, 229, 255, 0.3));
  transform: translateY(0);
  animation: floatSlow 4s ease-in-out infinite;
}
.onlypw-avatar::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.4), transparent 70%);
  filter: blur(8px);
  animation: breath 4s ease-in-out infinite;
}

.onlypw-info { flex: 1; }
.onlypw-badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.7rem;
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  color: #fff;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.onlypw-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold) 0%, var(--magenta) 50%, var(--cyan) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
  margin-bottom: 0.75rem;
  line-height: 1;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.onlypw-tag {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.onlypw-stats {
  display: flex;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.op-stat {
  text-align: center;
  flex: 1;
}
.op-stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.op-stat-label {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ============== JOIN ============== */
.section-join {
  background:
    radial-gradient(ellipse 60% 40% at 30% 30%, rgba(124, 252, 0, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 70% 70%, rgba(0, 229, 255, 0.08), transparent 70%);
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 880px;
  margin: 0 auto 3rem;
}

.join-card {
  background: linear-gradient(180deg, rgba(20, 26, 44, 0.7), rgba(10, 14, 26, 0.5));
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  padding: 2rem;
  text-align: center;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.join-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--accent, var(--cyan)), transparent 30%);
  animation: spin 6s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.join-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 60px var(--accent-glow);
}
.join-card:hover::before { opacity: 0.15; }

.join-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 16px currentColor);
  animation: breath 3s ease-in-out infinite;
}
.join-java   .join-card-icon { color: var(--gold); }
.join-bedrock .join-card-icon { color: var(--cyan); }

.join-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
}
.join-card p {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.join-ip-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  flex-wrap: wrap;
}
.join-ip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
  word-break: break-all;
}
.join-port { color: var(--text-3); font-family: monospace; }
.join-copy {
  padding: 0.4rem 0.85rem;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--cyan);
  color: #000;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.join-copy:hover { filter: brightness(1.2); transform: translateY(-1px); }
.join-copy.copied { background: var(--green); }

.join-cta {
  text-align: center;
}
.join-note {
  margin-top: 1rem;
  color: var(--text-2);
  font-size: 0.95rem;
}

/* ============== FOOTER ============== */
.footer {
  background: linear-gradient(180deg, transparent, var(--bg-2));
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col a {
  color: var(--text-2);
  transition: color 0.2s ease;
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--cyan); }
.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.4));
}
.footer-tag {
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 280px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
}

/* ============== TOASTS ============== */
.toasts {
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  background: rgba(10, 14, 26, 0.92);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  pointer-events: auto;
  max-width: 340px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.toast.out { animation: toastOut 0.4s ease forwards; }
.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg-3);
  flex-shrink: 0;
  image-rendering: pixelated;
}
.toast-body { flex: 1; }
.toast-title { font-weight: 600; }
.toast-sub { color: var(--text-2); font-size: 0.8rem; }
.toast.join .toast-icon { box-shadow: 0 0 0 1px var(--ok); }
.toast.leave .toast-icon { box-shadow: 0 0 0 1px var(--err); }

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: 0; }
  .hero-stat:nth-child(1), .hero-stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .onlypw-card-inner { flex-direction: column; text-align: center; }
  .onlypw-avatar { width: 120px; height: 180px; }
  .onlypw-stats { justify-content: center; }
}

@media (max-width: 600px) {
  .hero { min-height: 90vh; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:nth-child(3) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-blocks { opacity: 0.4; }
  .server-grid { grid-template-columns: 1fr; }
  .players-grid { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .onlypw-card { padding: 1.5rem; }
  .toasts { right: 0.5rem; left: 0.5rem; }
  .toast { max-width: none; }
}
