/* ══════════════════════════════════════════
   APEXBRAWL NETWORK — GLOBAL STYLES
   ══════════════════════════════════════════ */

:root {
  --pink: #ff2d78;
  --red: #ff1a1a;
  --dark-pink: #c4004e;
  --cyan: #00ffe7;
  --bg: #0a0005;
  --bg2: #110009;
  --grid: #1a000d;
  --text: #ffcce3;
  --dim: #7a3050;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Press Start 2P', monospace;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: crosshair;
}

/* ── PIXEL GRID BACKGROUND ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ── NOISE OVERLAY ── */
#noise {
  position: fixed;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ── FLOATING PARTICLES ── */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--pink);
  image-rendering: pixelated;
  animation: float linear infinite;
  opacity: 0;
}

.particle:nth-child(odd) { background: var(--cyan); width: 6px; height: 6px; }
.particle:nth-child(3n) { background: var(--red); }

@keyframes float {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-40px) translateX(30px); opacity: 0; }
}

/* ── WRAPPER ── */
#app {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════
   NAV
   ══════════════════════════════════════════ */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 2px solid var(--pink);
  background: linear-gradient(90deg, rgba(255,45,120,0.08), transparent, rgba(255,45,120,0.08));
  box-shadow: 0 0 20px rgba(255,45,120,0.3), inset 0 -1px 0 var(--dark-pink);
  flex-shrink: 0;
}

.nav-logo {
  font-size: 18px;
  color: var(--pink);
  text-shadow:
    0 0 8px var(--pink),
    0 0 20px var(--pink),
    2px 2px 0 var(--dark-pink);
  letter-spacing: 2px;
  animation: logoPulse 3s ease-in-out infinite;
  text-decoration: none;
  display: inline-block;
}

.nav-logo span { color: #fff; text-shadow: 2px 2px 0 var(--dim), 0 0 12px #fff5; }

@keyframes logoPulse {
  0%, 100% { text-shadow: 0 0 8px var(--pink), 0 0 20px var(--pink), 2px 2px 0 var(--dark-pink); }
  50% { text-shadow: 0 0 14px var(--pink), 0 0 40px var(--pink), 0 0 60px var(--dark-pink), 2px 2px 0 var(--dark-pink); }
}

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

.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 1px;
  transition: all 0.1s;
  position: relative;
  padding: 4px 0;
}

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

.nav-links a:hover, .nav-links a.active {
  color: var(--pink);
  text-shadow: 0 0 8px var(--pink);
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-server {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
  border: 1px solid var(--cyan);
  padding: 6px 14px;
  letter-spacing: 2px;
  animation: blink 2s step-end infinite;
  cursor: pointer;
  transition: background 0.15s;
}

.nav-server:hover { background: rgba(0,255,231,0.07); }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ── Nav badge (gamemode label) ── */
.nav-badge {
  font-family: 'VT323', monospace;
  font-size: 14px;
  padding: 3px 10px;
  border: 1px solid var(--pink);
  color: var(--pink);
  letter-spacing: 2px;
  margin-left: 12px;
  vertical-align: middle;
  opacity: 0.7;
}

/* ══════════════════════════════════════════
   SHARED PAGE ELEMENTS
   ══════════════════════════════════════════ */
.page-content {
  flex: 1;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-title {
  font-size: clamp(20px, 4vw, 36px);
  color: var(--pink);
  text-shadow: 0 0 16px var(--pink), 3px 3px 0 var(--dark-pink);
  margin-bottom: 10px;
}

.page-title span { color: #fff; text-shadow: 2px 2px 0 var(--dim); }

.page-sub {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: var(--dim);
  letter-spacing: 4px;
}

/* Shared button */
.btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 14px 28px;
  border: 2px solid;
  background: transparent;
  cursor: pointer;
  letter-spacing: 2px;
  position: relative;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
  color: inherit;
}

.btn::after {
  content: '';
  position: absolute;
  bottom: -4px; right: -4px;
  width: 100%; height: 100%;
  border: 2px solid;
  border-color: inherit;
  opacity: 0.4;
  transition: all 0.15s;
}

.btn:hover { transform: translate(-2px,-2px); }
.btn:hover::after { transform: translate(4px, 4px); opacity: 0.2; }
.btn:active { transform: translate(0,0); }

.btn-primary { border-color: var(--pink); color: var(--pink); }
.btn-primary:hover { background: rgba(255,45,120,0.15); box-shadow: 0 0 20px rgba(255,45,120,0.4); }

.btn-secondary { border-color: var(--cyan); color: var(--cyan); }
.btn-secondary:hover { background: rgba(0,255,231,0.1); box-shadow: 0 0 20px rgba(0,255,231,0.3); }

/* ══════════════════════════════════════════
   HUB PAGE (index.html)
   ══════════════════════════════════════════ */
.hub-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 40px;
  text-align: center;
  flex: 1;
}

.hub-hero {
  position: relative;
}

.hub-title {
  font-size: clamp(32px, 7vw, 72px);
  line-height: 1.2;
}

.hub-title .apex {
  color: var(--pink);
  text-shadow: 0 0 10px var(--pink), 0 0 30px var(--pink), 4px 4px 0 #7a0030;
  display: inline-block;
  animation: glitch 4s infinite;
}

.hub-title .brawl {
  color: #fff;
  text-shadow: 4px 4px 0 var(--dim), 0 0 20px #fff3;
}

@keyframes glitch {
  0%, 90%, 100% { transform: none; clip-path: none; }
  92% { transform: translate(-3px, 0); clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%); text-shadow: 3px 0 var(--cyan), -3px 0 var(--red); }
  94% { transform: translate(3px, 0); clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); text-shadow: -3px 0 var(--cyan), 3px 0 var(--red); }
  96% { transform: none; clip-path: none; }
}

.hub-sub {
  font-family: 'VT323', monospace;
  font-size: 28px;
  color: var(--cyan);
  letter-spacing: 8px;
  text-shadow: 0 0 10px var(--cyan);
  margin-top: 10px;
}

.hub-tag {
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 3px;
  margin-top: 6px;
}

/* Gamemode selector cards */
.gamemode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
}


.gamemode-card {
  border: 2px solid;
  padding: 40px 30px;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gamemode-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.gamemode-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.gamemode-icon { font-size: 48px; display: block; }

.gamemode-name {
  font-size: 16px;
  letter-spacing: 3px;
}

.gamemode-desc {
  font-family: 'VT323', monospace;
  font-size: 20px;
  line-height: 1.4;
}

.gamemode-status {
  font-size: 7px;
  padding: 4px 12px;
  border: 1px solid;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* KitPvP card */
.gm-kitpvp { border-color: var(--pink); }
.gm-kitpvp .gamemode-name { color: var(--pink); text-shadow: 0 0 10px var(--pink); }
.gm-kitpvp .gamemode-desc { color: var(--dim); }
.gm-kitpvp .gamemode-status { border-color: #44bb66; color: #55cc77; }
.gm-kitpvp:hover { box-shadow: 0 0 40px rgba(255,45,120,0.4), inset 0 0 30px rgba(255,45,120,0.05); }

/* Factions card */
.gm-factions { border-color: #9933FF; }
.gm-factions .gamemode-name { color: #BB77FF; text-shadow: 0 0 10px #9933FF; }
.gm-factions .gamemode-desc { color: #7a5090; }
.gm-factions .gamemode-status { border-color: #ff8800; color: #ff8800; }
.gm-factions:hover { box-shadow: 0 0 40px rgba(153,51,255,0.4), inset 0 0 30px rgba(153,51,255,0.05); }

/* Skyblock card */
.gm-skyblock { border-color: #0099FF; }
.gm-skyblock .gamemode-name { color: #33AAFF; text-shadow: 0 0 10px #0099FF; }
.gm-skyblock .gamemode-desc { color: #2a5070; }
.gm-skyblock .gamemode-status { border-color: #44bb66; color: #55cc77; }
.gm-skyblock:hover { box-shadow: 0 0 40px rgba(0,153,255,0.4), inset 0 0 30px rgba(0,153,255,0.05); }

/* Prison card */
.gm-prison { border-color: #CC5500; }
.gm-prison .gamemode-name { color: #FF8833; text-shadow: 0 0 10px #CC5500; }
.gm-prison .gamemode-desc { color: #6a3800; }
.gm-prison .gamemode-status { border-color: #AA6622; color: #CCAA66; }
.gm-prison:hover { box-shadow: 0 0 40px rgba(204,85,0,0.35), inset 0 0 30px rgba(204,85,0,0.05); }

/* Creative card */
.gm-creative { border-color: #00CC99; }
.gm-creative .gamemode-name { color: #00FFCC; text-shadow: 0 0 10px #00CC99; }
.gm-creative .gamemode-desc { color: #1a5044; }
.gm-creative .gamemode-status { border-color: #00AA88; color: #99CCBB; }
.gm-creative:hover { box-shadow: 0 0 40px rgba(0,204,153,0.35), inset 0 0 30px rgba(0,204,153,0.05); }

/* Hub section label */
.hub-section-label {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: var(--dim);
  letter-spacing: 6px;
  text-align: center;
}


/* Hub IP bar */
.hub-ip {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hub-ip-label {
  font-size: 8px;
  color: var(--dim);
  letter-spacing: 2px;
}

.hub-ip-value {
  font-family: 'VT323', monospace;
  font-size: 24px;
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan);
  border: 1px solid var(--cyan);
  padding: 8px 20px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.15s;
}

.hub-ip-value:hover {
  background: rgba(0,255,231,0.07);
  box-shadow: 0 0 16px rgba(0,255,231,0.3);
}

/* ══════════════════════════════════════════
   KITPVP HOME PAGE
   ══════════════════════════════════════════ */
.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 50px;
  text-align: center;
}

.hero-banner { position: relative; display: inline-block; }

.hero-title {
  font-size: clamp(28px, 6vw, 64px);
  line-height: 1.2;
  position: relative;
}

.hero-title .apex {
  color: var(--pink);
  text-shadow: 0 0 10px var(--pink), 0 0 30px var(--pink), 4px 4px 0 #7a0030;
  display: inline-block;
  animation: glitch 4s infinite;
}

.hero-title .brawl {
  color: #fff;
  text-shadow: 4px 4px 0 var(--dim), 0 0 20px #fff3;
}

.hero-sub {
  font-family: 'VT323', monospace;
  font-size: 28px;
  color: var(--cyan);
  letter-spacing: 8px;
  text-shadow: 0 0 10px var(--cyan);
  margin-top: 10px;
}

.hero-tag {
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 3px;
  margin-top: 6px;
}

/* Stats */
.stats-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-box {
  border: 2px solid var(--pink);
  padding: 20px 28px;
  background: rgba(255,45,120,0.05);
  box-shadow: 0 0 16px rgba(255,45,120,0.2), inset 0 0 16px rgba(255,45,120,0.03);
  position: relative;
  min-width: 130px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px;
  width: 10px; height: 10px;
  background: var(--bg);
  border-right: 2px solid var(--pink);
  border-bottom: 2px solid var(--pink);
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 28px rgba(255,45,120,0.5), inset 0 0 20px rgba(255,45,120,0.08);
}

.stat-num {
  font-size: 26px;
  color: var(--pink);
  text-shadow: 0 0 12px var(--pink);
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 2px;
}

/* CTA */
.cta-group { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
}

.feat-card {
  border: 1px solid rgba(255,45,120,0.3);
  padding: 24px 20px;
  background: rgba(255,45,120,0.03);
  position: relative;
  transition: all 0.2s;
}

.feat-card::before {
  content: attr(data-n);
  position: absolute;
  top: -12px; left: 12px;
  background: var(--bg);
  padding: 2px 8px;
  font-size: 7px;
  color: var(--pink);
  border: 1px solid var(--pink);
}

.feat-card:hover {
  border-color: var(--pink);
  background: rgba(255,45,120,0.07);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,45,120,0.2);
}

.feat-icon { font-size: 28px; display: block; margin-bottom: 12px; }
.feat-title { font-size: 9px; color: var(--pink); margin-bottom: 10px; }
.feat-desc { font-family: 'VT323', monospace; font-size: 18px; color: var(--dim); line-height: 1.4; }

/* ── PVP Rank Ladder ── */
.ladder-section {
  width: 100%;
  max-width: 700px;
  padding: 0 20px;
}

.ladder-title {
  font-size: 12px;
  color: var(--red);
  text-shadow: 0 0 10px rgba(255,26,26,0.5);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 3px;
}

.ladder-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.ladder-rank {
  padding: 8px 14px;
  border: 1px solid rgba(255,68,68,0.3);
  font-size: 7px;
  letter-spacing: 1px;
  color: #ff6666;
  transition: all 0.2s;
  background: rgba(255,68,68,0.03);
}

.ladder-rank:hover {
  background: rgba(255,68,68,0.1);
  border-color: #ff4444;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,68,68,0.2);
}

.ladder-arrow {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: rgba(255,68,68,0.3);
  padding: 0 4px;
}

.ladder-rank.legendary {
  border-color: #ff4444;
  color: #ff4444;
  text-shadow: 0 0 8px rgba(255,68,68,0.5);
  background: rgba(255,68,68,0.06);
}

/* ══════════════════════════════════════════
   KITS / RANKS PAGE
   ══════════════════════════════════════════ */
.kits-content {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1200px;
}

.kit-card {
  border: 2px solid;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.kit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.kit-card:hover { transform: translateY(-6px) scale(1.01); }

.kit-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid;
  display: flex;
  align-items: center;
  gap: 14px;
}

.kit-icon { font-size: 32px; flex-shrink: 0; }
.kit-name { font-size: 11px; margin-bottom: 4px; }

.kit-tier {
  font-family: 'VT323', monospace;
  font-size: 16px;
  letter-spacing: 3px;
}

.kit-body { padding: 18px 20px; }

.kit-items {
  list-style: none;
  margin-bottom: 12px;
}

.kit-items li {
  font-family: 'VT323', monospace;
  font-size: 19px;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kit-items li::before {
  content: '\25B8';
  font-size: 12px;
}

.kit-badge {
  font-size: 7px;
  padding: 4px 10px;
  border: 1px solid;
  letter-spacing: 2px;
  display: inline-block;
  margin-top: 4px;
}

/* Kit perks section */
.kit-perks {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 14px 20px;
}

.kit-perks-title {
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.perk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.perk-tag {
  font-family: 'VT323', monospace;
  font-size: 15px;
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  letter-spacing: 1px;
}

/* ── Kit color themes ── */

.kit-copper { border-color: #B87333; }
.kit-copper .kit-header { border-color: rgba(184,115,51,0.3); background: rgba(184,115,51,0.06); }
.kit-copper .kit-name, .kit-copper .kit-items li::before { color: #D4904E; }
.kit-copper .kit-tier { color: rgba(184,115,51,0.55); }
.kit-copper .kit-badge { border-color: #B87333; color: #D4904E; }
.kit-copper .kit-perks { border-color: rgba(184,115,51,0.15); }
.kit-copper:hover { box-shadow: 0 0 24px rgba(184,115,51,0.3); }

.kit-iron { border-color: #8899aa; }
.kit-iron .kit-header { border-color: rgba(136,153,170,0.3); background: rgba(136,153,170,0.05); }
.kit-iron .kit-name, .kit-iron .kit-items li::before { color: #aabbcc; }
.kit-iron .kit-tier { color: rgba(136,153,170,0.5); }
.kit-iron .kit-badge { border-color: #8899aa; color: #8899aa; }
.kit-iron .kit-perks { border-color: rgba(136,153,170,0.15); }
.kit-iron:hover { box-shadow: 0 0 24px rgba(136,153,170,0.25); }

.kit-gold { border-color: #FFD700; }
.kit-gold .kit-header { border-color: rgba(255,215,0,0.3); background: rgba(255,215,0,0.05); }
.kit-gold .kit-name, .kit-gold .kit-items li::before { color: #FFE040; }
.kit-gold .kit-tier { color: rgba(255,215,0,0.5); }
.kit-gold .kit-badge { border-color: #FFD700; color: #FFE040; }
.kit-gold .kit-perks { border-color: rgba(255,215,0,0.15); }
.kit-gold:hover { box-shadow: 0 0 28px rgba(255,215,0,0.3); }

.kit-emerald { border-color: #50C878; }
.kit-emerald .kit-header { border-color: rgba(80,200,120,0.3); background: rgba(80,200,120,0.05); }
.kit-emerald .kit-name, .kit-emerald .kit-items li::before { color: #66DD8E; }
.kit-emerald .kit-tier { color: rgba(80,200,120,0.5); }
.kit-emerald .kit-badge { border-color: #50C878; color: #66DD8E; }
.kit-emerald .kit-perks { border-color: rgba(80,200,120,0.15); }
.kit-emerald:hover { box-shadow: 0 0 28px rgba(80,200,120,0.3); }

.kit-diamond { border-color: #00BFFF; }
.kit-diamond .kit-header { border-color: rgba(0,191,255,0.3); background: rgba(0,191,255,0.05); }
.kit-diamond .kit-name, .kit-diamond .kit-items li::before { color: #33CCFF; }
.kit-diamond .kit-tier { color: rgba(0,191,255,0.5); }
.kit-diamond .kit-badge { border-color: #00BFFF; color: #33CCFF; }
.kit-diamond .kit-perks { border-color: rgba(0,191,255,0.15); }
.kit-diamond:hover { box-shadow: 0 0 30px rgba(0,191,255,0.35); }

.kit-netherite { border-color: #6B3A3A; }
.kit-netherite .kit-header { border-color: rgba(107,58,58,0.4); background: rgba(107,58,58,0.08); }
.kit-netherite .kit-name, .kit-netherite .kit-items li::before { color: #CC5555; }
.kit-netherite .kit-tier { color: rgba(204,85,85,0.5); }
.kit-netherite .kit-badge { border-color: #6B3A3A; color: #CC5555; }
.kit-netherite .kit-perks { border-color: rgba(107,58,58,0.2); }
.kit-netherite:hover { box-shadow: 0 0 30px rgba(107,58,58,0.4); }

.kit-obsidian { border-color: #9933FF; }
.kit-obsidian .kit-header { border-color: rgba(153,51,255,0.3); background: rgba(153,51,255,0.06); }
.kit-obsidian .kit-name, .kit-obsidian .kit-items li::before { color: #BB77FF; }
.kit-obsidian .kit-tier { color: rgba(153,51,255,0.5); }
.kit-obsidian .kit-badge { border-color: #9933FF; color: #BB77FF; }
.kit-obsidian .kit-perks { border-color: rgba(153,51,255,0.2); }
.kit-obsidian:hover { box-shadow: 0 0 34px rgba(153,51,255,0.45); }

/* ══════════════════════════════════════════
   RULES PAGE
   ══════════════════════════════════════════ */
.rules-content {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rules-wrap {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rule-section {
  border: 1px solid rgba(255,45,120,0.25);
  overflow: hidden;
}

.rule-section-header {
  padding: 16px 24px;
  background: rgba(255,45,120,0.08);
  border-bottom: 1px solid rgba(255,45,120,0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.rule-section-header:hover { background: rgba(255,45,120,0.14); }
.rule-section-icon { font-size: 20px; }

.rule-section-title {
  font-size: 10px;
  color: var(--pink);
  text-shadow: 0 0 8px rgba(255,45,120,0.4);
  flex: 1;
}

.rule-toggle {
  font-size: 12px;
  color: var(--dim);
  transition: transform 0.2s;
}

.rule-section.open .rule-toggle { transform: rotate(180deg); }

.rule-list {
  display: none;
  padding: 20px 24px;
  gap: 12px;
  flex-direction: column;
}

.rule-section.open .rule-list { display: flex; }

.rule-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(0,0,0,0.2);
  border-left: 3px solid;
  transition: background 0.15s;
}

.rule-item:hover { background: rgba(255,45,120,0.04); }

.rule-num {
  font-size: 8px;
  color: var(--pink);
  flex-shrink: 0;
  padding-top: 2px;
  min-width: 24px;
}

.rule-text {
  font-family: 'VT323', monospace;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text);
}

.rule-item.warn { border-color: #ff8800; }
.rule-item.warn .rule-num { color: #ff8800; }
.rule-item.ban { border-color: var(--red); }
.rule-item.ban .rule-num { color: var(--red); }
.rule-item.ok { border-color: #44bb66; }
.rule-item.ok .rule-num { color: #55cc77; }
.rule-item.info { border-color: var(--pink); }
.rule-item.info .rule-num { color: var(--pink); }

.penalty-tag {
  margin-left: auto;
  font-size: 7px;
  padding: 3px 8px;
  border: 1px solid;
  flex-shrink: 0;
  white-space: nowrap;
  align-self: center;
}

.penalty-warn { border-color: #ff8800; color: #ff8800; }
.penalty-ban  { border-color: var(--red); color: var(--red); }
.penalty-perm { border-color: #ff0000; color: #ff0000; background: rgba(255,0,0,0.08); }

/* Staff notice */
.staff-notice {
  border: 1px solid var(--cyan);
  padding: 20px 24px;
  background: rgba(0,255,231,0.04);
  display: flex;
  gap: 16px;
  align-items: center;
}

.staff-notice-icon { font-size: 24px; }
.staff-notice-text { font-family: 'VT323', monospace; font-size: 20px; color: var(--cyan); line-height: 1.5; }

/* ══════════════════════════════════════════
   COMING SOON PAGES (Prison, Creative)
   ══════════════════════════════════════════ */
.coming-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 40px;
  text-align: center;
  flex: 1;
}

.coming-title {
  font-size: clamp(24px, 5vw, 48px);
  line-height: 1.2;
}

.coming-sub {
  font-family: 'VT323', monospace;
  font-size: 28px;
  letter-spacing: 8px;
  margin-top: 10px;
}

.coming-tag {
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 3px;
  margin-top: 4px;
}

.coming-box {
  border: 2px solid;
  padding: 40px 70px;
  position: relative;
  animation: comingPulse 2.5s ease-in-out infinite;
}

.coming-box::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid;
  border-color: inherit;
  opacity: 0.2;
  animation: comingPulse 2.5s ease-in-out infinite reverse;
}

@keyframes comingPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(128,128,128,0.15); }
  50% { box-shadow: 0 0 36px rgba(128,128,128,0.3); }
}

.coming-box-text {
  font-size: clamp(14px, 3vw, 24px);
  letter-spacing: 6px;
}

.coming-box-sub {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: var(--dim);
  margin-top: 12px;
  letter-spacing: 2px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
}

.teaser-card {
  border: 1px solid rgba(128,128,128,0.2);
  padding: 24px 20px;
  background: rgba(128,128,128,0.02);
  position: relative;
  transition: all 0.2s;
  text-align: left;
}

.teaser-card:hover { transform: translateY(-3px); }

.teaser-icon { font-size: 28px; display: block; margin-bottom: 12px; }
.teaser-title { font-size: 9px; margin-bottom: 10px; }
.teaser-desc { font-family: 'VT323', monospace; font-size: 18px; color: var(--dim); line-height: 1.4; }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  border-top: 1px solid rgba(255,45,120,0.2);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,45,120,0.02);
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-left {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--dim);
}

.footer-left span { color: var(--pink); }

.footer-ip {
  font-size: 8px;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
  letter-spacing: 2px;
  border: 1px solid rgba(0,255,231,0.3);
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.footer-ip:hover { background: rgba(0,255,231,0.07); box-shadow: 0 0 12px rgba(0,255,231,0.3); }

/* Toast */
.copy-toast {
  position: fixed;
  bottom: 70px;
  right: 40px;
  background: var(--pink);
  color: #fff;
  font-size: 9px;
  padding: 10px 18px;
  z-index: 999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s;
  pointer-events: none;
  border: 2px solid #fff2;
}

.copy-toast.show { opacity: 1; transform: none; }

/* ══════════════════════════════════════════
   RANK NETWORK NOTICE BANNER
   ══════════════════════════════════════════ */
.rank-network-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 2px solid var(--pink);
  padding: 20px 28px;
  background: rgba(255,45,120,0.06);
  box-shadow: 0 0 20px rgba(255,45,120,0.15), inset 0 0 20px rgba(255,45,120,0.03);
  width: 100%;
  max-width: 1200px;
  margin-bottom: 2rem;
}

.rank-notice-icon {
  font-size: 20px;
  color: var(--pink);
  text-shadow: 0 0 10px var(--pink);
  flex-shrink: 0;
  margin-top: 2px;
}

.rank-notice-text {
  font-family: 'VT323', monospace;
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
}

.rank-notice-text strong {
  color: var(--pink);
  text-shadow: 0 0 8px rgba(255,45,120,0.5);
}

/* ── Rank Ladder Overview ── */
.rank-ladder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 1rem;
}

.rank-rung {
  font-family: 'VT323', monospace;
  font-size: 16px;
  padding: 10px 14px;
  border: 2px solid;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.rank-rung:hover { transform: translateY(-3px); }

.rank-rung-copper  { border-color: #B87333; color: #D4904E; }
.rank-rung-copper:hover  { box-shadow: 0 0 14px rgba(184,115,51,0.4); }
.rank-rung-iron    { border-color: #8899aa; color: #aabbcc; }
.rank-rung-iron:hover    { box-shadow: 0 0 14px rgba(136,153,170,0.3); }
.rank-rung-gold    { border-color: #FFD700; color: #FFE040; }
.rank-rung-gold:hover    { box-shadow: 0 0 14px rgba(255,215,0,0.4); }
.rank-rung-emerald { border-color: #50C878; color: #66DD8E; }
.rank-rung-emerald:hover { box-shadow: 0 0 14px rgba(80,200,120,0.4); }
.rank-rung-diamond { border-color: #00BFFF; color: #33CCFF; }
.rank-rung-diamond:hover { box-shadow: 0 0 14px rgba(0,191,255,0.4); }
.rank-rung-netherite { border-color: #993333; color: #CC5555; }
.rank-rung-netherite:hover { box-shadow: 0 0 14px rgba(153,51,51,0.4); }
.rank-rung-obsidian { border-color: #9933FF; color: #BB77FF; }
.rank-rung-obsidian:hover { box-shadow: 0 0 14px rgba(153,51,255,0.5); }

.rank-ladder-arrow {
  color: rgba(255,45,120,0.35);
  font-size: 14px;
  padding: 0 2px;
}

/* ── Kit mode label ── */
.kit-mode-label {
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 2px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ── Rank store callout ── */
.rank-store-callout {
  width: 100%;
  max-width: 1200px;
  margin-top: 2rem;
  padding: 20px 28px;
  border: 1px solid rgba(255,45,120,0.2);
  background: rgba(255,45,120,0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-store-callout p {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--dim);
  line-height: 1.5;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 640px) {
  nav { padding: 14px 20px; }
  .nav-logo { font-size: 13px; }
  .nav-server { display: none; }
  .nav-badge { display: none; }
  .nav-links { gap: 14px; }
  .hub-content { padding: 40px 16px; }
  .gamemode-grid { grid-template-columns: 1fr; }
  .home-content { padding: 40px 16px; }
  .kits-content, .rules-content { padding: 40px 16px; }
  .kits-grid { grid-template-columns: 1fr; }
  .ladder-track { gap: 0; }
  .ladder-rank { font-size: 6px; padding: 6px 8px; }
  .ladder-arrow { font-size: 14px; }
  .coming-content { padding: 40px 16px; }
  .coming-box { padding: 24px 32px; }
  .teaser-grid { grid-template-columns: 1fr; }
  .rank-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-detail-tabs { flex-wrap: wrap; }
  .rank-detail-tab { font-size: 7px; padding: 6px 10px; }
  .rank-perk-table { font-size: 11px; }
  .rank-perk-table th, .rank-perk-table td { padding: 6px 4px; }
}

/* ══════════════════════════════════════════
   RANK SUMMARY CARDS (compact overview)
   ══════════════════════════════════════════ */

.rank-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

.rank-summary-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
}

.rank-summary-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.04);
}

.rank-summary-icon { font-size: 28px; display: block; margin-bottom: 10px; }
.rank-summary-name { font-size: 10px; letter-spacing: 3px; margin-bottom: 6px; }

.rank-summary-price {
  font-family: 'VT323', monospace;
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.rank-summary-tag {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: var(--dim);
  line-height: 1.4;
}

/* Rank card color themes */
.rank-card-copper { border-color: #B87333; }
.rank-card-copper .rank-summary-name { color: #D4904E; }
.rank-card-copper .rank-summary-price { color: #B87333; }
.rank-card-copper:hover { box-shadow: 0 0 20px rgba(184,115,51,0.25); }

.rank-card-iron { border-color: #8899aa; }
.rank-card-iron .rank-summary-name { color: #aabbcc; }
.rank-card-iron .rank-summary-price { color: #8899aa; }
.rank-card-iron:hover { box-shadow: 0 0 20px rgba(136,153,170,0.2); }

.rank-card-gold { border-color: #FFD700; }
.rank-card-gold .rank-summary-name { color: #FFE040; }
.rank-card-gold .rank-summary-price { color: #FFD700; }
.rank-card-gold:hover { box-shadow: 0 0 20px rgba(255,215,0,0.25); }

.rank-card-emerald { border-color: #50C878; }
.rank-card-emerald .rank-summary-name { color: #66DD8E; }
.rank-card-emerald .rank-summary-price { color: #50C878; }
.rank-card-emerald:hover { box-shadow: 0 0 20px rgba(80,200,120,0.25); }

.rank-card-diamond { border-color: #00BFFF; }
.rank-card-diamond .rank-summary-name { color: #40D4FF; }
.rank-card-diamond .rank-summary-price { color: #00BFFF; }
.rank-card-diamond:hover { box-shadow: 0 0 20px rgba(0,191,255,0.25); }

.rank-card-netherite { border-color: #6B3A3A; }
.rank-card-netherite .rank-summary-name { color: #CC5555; }
.rank-card-netherite .rank-summary-price { color: #6B3A3A; }
.rank-card-netherite:hover { box-shadow: 0 0 20px rgba(107,58,58,0.3); }

.rank-card-obsidian { border-color: #9933FF; }
.rank-card-obsidian .rank-summary-name { color: #BB66FF; }
.rank-card-obsidian .rank-summary-price { color: #9933FF; }
.rank-card-obsidian:hover { box-shadow: 0 0 20px rgba(153,51,255,0.3); }

/* ══════════════════════════════════════════
   RANK DETAIL TABS (server-specific perks)
   ══════════════════════════════════════════ */

.rank-detail-tabs {
  display: flex;
  gap: 4px;
  max-width: 1000px;
  margin: 0 auto 0;
  border-bottom: 2px solid var(--dark-pink);
  padding-bottom: 0;
}

.rank-detail-tab {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  color: var(--dim);
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rank-detail-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.rank-detail-tab.active {
  color: var(--pink);
  border-color: var(--dark-pink);
  background: rgba(255,45,120,0.06);
  border-bottom: 2px solid var(--bg);
  margin-bottom: -2px;
}

.rank-detail-panel {
  display: none;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

.rank-detail-panel.active { display: block; }

.rank-panel-note {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--dim);
  margin-bottom: 16px;
}

.rank-panel-sub {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: var(--dim);
  margin-top: 12px;
}

/* ── Perk comparison table ── */

.rank-perk-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'VT323', monospace;
  font-size: 16px;
}

.rank-perk-table thead tr {
  border-bottom: 2px solid var(--dark-pink);
}

.rank-perk-table th {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  letter-spacing: 1px;
  padding: 8px 6px;
  text-align: center;
  color: var(--dim);
}

.rank-perk-table th:first-child { text-align: left; }

.rank-perk-table td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.rank-perk-table td:first-child {
  text-align: left;
  color: var(--text);
  font-size: 17px;
}

/* Column header colors */
.col-copper { color: #D4904E !important; }
.col-iron { color: #aabbcc !important; }
.col-gold { color: #FFE040 !important; }
.col-emerald { color: #66DD8E !important; }
.col-diamond { color: #40D4FF !important; }
.col-netherite { color: #CC5555 !important; }
.col-obsidian { color: #BB66FF !important; }

.perk-blocked {
  color: #663344 !important;
  font-style: italic;
  font-size: 14px;
}
