/* ═══════════════════════════════════════════════════════════════
   PATH OF TITANS — PVP SERVER — MAIN STYLESHEET
   Theme: Dark Neon Red / Electric Crimson
   ═══════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap");

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --red: #ff1a1a;
  --red-dark: #cc0000;
  --red-dim: #800000;
  --red-glow: rgba(255, 26, 26, 0.6);
  --red-trace: rgba(255, 26, 26, 0.15);
  --crimson: #8b0000;
  --neon-pink: #ff003c;
  --electric: #ff4444;
  --bg-void: #020202;
  --bg-deep: #080808;
  --bg-panel: #0d0d0d;
  --bg-card: #111111;
  --bg-border: #1a0000;
  --text-main: #f0e0e0;
  --text-dim: #884444;
  --text-mono: #ff6666;
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg-void);
  color: var(--text-main);
  font-family: "Rajdhani", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  cursor: none;
  overflow-x: hidden;
}

/* ── Custom Cursor ─────────────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 10px var(--red),
    0 0 20px var(--red-glow);
  transition:
    width 0.1s,
    height 0.1s;
}
#cursor-ring {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1px solid var(--red-glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition:
    width 0.15s,
    height 0.15s,
    border-color 0.15s;
}
body.clicking #cursor-dot {
  width: 4px;
  height: 4px;
}
body.clicking #cursor-ring {
  width: 50px;
  height: 50px;
  border-color: var(--red);
}

/* ── Global Canvas Lightning ───────────────────────────────────── */
#lightning-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

/* ── Scanline Overlay ──────────────────────────────────────────── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.07) 2px,
    rgba(0, 0, 0, 0.07) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* ── Blood Drip Header Bar ─────────────────────────────────────── */
#blood-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--red),
    var(--neon-pink),
    var(--red),
    transparent
  );
  z-index: 9000;
  animation: barPulse 2s ease-in-out infinite;
}
@keyframes barPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow:
      0 0 10px var(--red),
      0 2px 20px var(--red-glow);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 4px var(--red);
  }
}

/* ── Navigation ────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  background: linear-gradient(
    180deg,
    rgba(2, 2, 2, 0.98) 0%,
    rgba(2, 2, 2, 0.7) 100%
  );
  border-bottom: 1px solid var(--bg-border);
  backdrop-filter: blur(8px);
}
.nav-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: var(--red);
  text-shadow:
    0 0 12px var(--red-glow),
    0 0 30px var(--red-glow);
  text-decoration: none;
  animation: logoFlicker 5s ease-in-out infinite;
}
@keyframes logoFlicker {
  0%,
  92%,
  100% {
    opacity: 1;
  }
  93% {
    opacity: 0.7;
  }
  95% {
    opacity: 1;
  }
  97% {
    opacity: 0.5;
  }
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  transition: width 0.3s ease;
}
.nav-links a:hover {
  color: var(--red);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-btn {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  background: transparent;
  border: 1px solid var(--red-dim);
  padding: 8px 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    color 0.2s,
    border-color 0.2s;
  text-decoration: none;
}
.nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  z-index: -1;
}
.nav-btn:hover {
  color: #000;
  border-color: var(--red);
}
.nav-btn:hover::before {
  transform: scaleX(1);
}

/* ── Hero Section ──────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/hero.webp");
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.35) saturate(1.4);
  transform: scale(1.04);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.1) translateY(-2%);
  }
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 40%,
      transparent 20%,
      rgba(2, 2, 2, 0.85) 80%
    ),
    linear-gradient(
      180deg,
      rgba(2, 2, 2, 0.5) 0%,
      transparent 20%,
      transparent 70%,
      rgba(2, 2, 2, 0.95) 100%
    );
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 26, 26, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 26, 26, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 15s linear infinite;
}
@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 60px 60px;
  }
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 12px;
  animation: fadeSlideUp 0.8s ease both;
}
.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow:
    0 0 40px var(--red-glow),
    0 0 80px rgba(255, 0, 0, 0.3);
  animation: fadeSlideUp 0.8s 0.15s ease both;
}
.hero-title span {
  color: var(--red);
  text-shadow:
    0 0 20px var(--red),
    0 0 60px var(--red-glow);
  display: block;
}
.hero-sub {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(240, 200, 200, 0.7);
  max-width: 480px;
  animation: fadeSlideUp 0.8s 0.3s ease both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  animation: fadeSlideUp 0.8s 0.45s ease both;
}
.btn-primary {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: #000;
  background: var(--red);
  border: none;
  padding: 14px 36px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition:
    background 0.2s,
    transform 0.15s;
  box-shadow:
    0 0 20px var(--red-glow),
    0 4px 30px rgba(255, 0, 0, 0.4);
}
.btn-primary:hover {
  background: #ff3333;
  transform: translateY(-2px);
  box-shadow:
    0 0 30px var(--red),
    0 6px 40px rgba(255, 0, 0, 0.5);
}
.btn-secondary {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--red);
  background: transparent;
  border: 1px solid var(--red-dim);
  padding: 14px 36px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-secondary:hover {
  background: var(--red-trace);
  border-color: var(--red);
}

/* ── Server Rates Panel ────────────────────────────────────────── */
.hero-rates {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeSlideUp 0.8s 0.6s ease both;
}
.rates-label {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
  border-left: 2px solid var(--red);
  padding-left: 10px;
  margin-bottom: 8px;
}
.rate-card {
  background: rgba(13, 0, 0, 0.8);
  border: 1px solid rgba(255, 26, 26, 0.15);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.2s,
    transform 0.2s;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.rate-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}
.rate-card:hover {
  border-color: var(--red-dim);
  transform: translateX(4px);
}
.rate-card:hover::before {
  transform: scaleY(1);
}
.rate-name {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.8rem;
  color: rgba(240, 180, 180, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.rate-value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  color: var(--red);
  text-shadow: 0 0 12px var(--red-glow);
  letter-spacing: 0.05em;
}
.rate-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #000;
  background: var(--red);
  padding: 2px 8px;
  font-family: "Share Tech Mono", monospace;
}

/* ── Animated Stats Strip ──────────────────────────────────────── */
#stats-strip {
  position: relative;
  z-index: 10;
  background: rgba(8, 0, 0, 0.9);
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
  padding: 0;
  overflow: hidden;
}
.strip-track {
  display: flex;
  gap: 0;
  animation: stripScroll 30s linear infinite;
  white-space: nowrap;
}
@keyframes stripScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 40px;
  border-right: 1px solid rgba(255, 26, 26, 0.1);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.strip-item .si-val {
  color: var(--red);
  font-size: 0.95rem;
}
.strip-sep {
  color: var(--red-dim);
}

/* ── Section Shared ────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 10;
  max-width: 1300px;
  margin: 0 auto;
  padding: 100px 48px;
}
.section-eyebrow {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
  margin-bottom: 40px;
}
.section-title span {
  color: var(--red);
}
.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  margin-bottom: 48px;
  box-shadow: 0 0 8px var(--red-glow);
}

/* ── Leaderboard ───────────────────────────────────────────────── */
#leaderboards {
  background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-deep) 100%);
}

.lb-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--bg-border);
  overflow-x: auto;
}
.lb-tab {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 28px;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.lb-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red-trace);
  opacity: 0;
  transition: opacity 0.2s;
}
.lb-tab:hover {
  color: var(--red);
}
.lb-tab:hover::before {
  opacity: 1;
}
.lb-tab.active {
  color: var(--red);
  border-color: var(--red);
  box-shadow: 0 2px 8px var(--red-glow);
}

.lb-panel {
  display: none;
  animation: fadeSlideUp 0.4s ease;
}
.lb-panel.active {
  display: block;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
}
.lb-table thead tr {
  border-bottom: 1px solid rgba(255, 26, 26, 0.2);
}
.lb-table th {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  padding: 10px 16px;
}
.lb-table tbody tr {
  border-bottom: 1px solid rgba(255, 26, 26, 0.06);
  transition:
    background 0.15s,
    transform 0.15s;
  cursor: default;
}
.lb-table tbody tr:hover {
  background: rgba(255, 26, 26, 0.06);
  transform: translateX(4px);
}
.lb-table td {
  padding: 14px 16px;
  vertical-align: middle;
}

.td-rank {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  width: 56px;
  text-align: center;
}
.rank-1 {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.rank-2 {
  color: var(--silver);
}
.rank-3 {
  color: var(--bronze);
}
.rank-other {
  color: var(--text-dim);
}

.td-badge {
  font-size: 1.3rem;
  width: 40px;
  text-align: center;
}

.td-name {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}
.td-dino {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.td-value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: var(--red);
  text-shadow: 0 0 8px var(--red-glow);
  text-align: right;
}
.td-bar {
  width: 140px;
  padding-right: 20px;
}
.bar-track {
  height: 4px;
  background: rgba(255, 26, 26, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  box-shadow: 0 0 6px var(--red-glow);
  border-radius: 2px;
  transition: width 1s ease;
}

/* ── Features Grid ─────────────────────────────────────────────── */
#features {
  background: var(--bg-void);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 26, 26, 0.1);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-trace) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: rgba(255, 26, 26, 0.4);
  transform: translateY(-4px);
  box-shadow:
    0 8px 30px rgba(255, 0, 0, 0.15),
    0 0 0 1px rgba(255, 26, 26, 0.2);
}
.feature-card:hover::after {
  opacity: 1;
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 8px var(--red-glow));
}
.feature-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 0.9rem;
  color: rgba(240, 200, 200, 0.55);
  line-height: 1.6;
}

/* ── Join Section ──────────────────────────────────────────────── */
#join {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-void) 100%);
  text-align: center;
  padding: 120px 48px;
}
.join-inner {
  max-width: 700px;
  margin: 0 auto;
}
.join-ip {
  display: inline-block;
  font-family: "Share Tech Mono", monospace;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: var(--red);
  background: rgba(255, 26, 26, 0.07);
  border: 1px solid rgba(255, 26, 26, 0.25);
  padding: 12px 32px;
  margin: 32px auto;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.join-ip:hover {
  background: rgba(255, 26, 26, 0.15);
}
.join-ip .copy-hint {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}
.join-ip .copied-msg {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--red);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}
.join-ip.copied .copy-hint {
  opacity: 0;
}
.join-ip.copied .copied-msg {
  opacity: 1;
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 10;
  background: var(--bg-void);
  border-top: 1px solid var(--bg-border);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  color: var(--red-dim);
  letter-spacing: 0.1em;
}
.footer-copy {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255, 26, 26, 0.2);
}

/* ── Click Burst ───────────────────────────────────────────────── */
.click-burst {
  position: fixed;
  pointer-events: none;
  z-index: 99990;
  transform: translate(-50%, -50%);
}
.click-burst svg {
  overflow: visible;
}

/* ── Particle ──────────────────────────────────────────────────── */
.bolt-particle {
  position: fixed;
  pointer-events: none;
  z-index: 99980;
  width: 2px;
  height: 2px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--red);
}

/* ── Shared Animations ─────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Loading overlay ───────────────────────────────────────────── */
#lb-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
}
#lb-loader::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid var(--red-dim);
  border-top-color: var(--red);
  border-radius: 50%;
  margin-right: 14px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav {
    padding: 12px 24px;
  }
  .nav-links {
    display: none;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px;
  }
  .hero-title {
    font-size: clamp(3rem, 12vw, 5rem);
  }
  .hero-rates {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .section {
    padding: 70px 24px;
  }
  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
