/* ============================================================
   RE-WORLD — GTA RP POST-APOCALYPTIQUE
   Stylesheet principal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&family=Crimson+Text:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* =================== VARIABLES =================== */
:root {
  --bg-void:      #0a0805;
  --bg-primary:   #0f0c08;
  --bg-secondary: #141109;
  --bg-card:      #191510;
  --bg-card-alt:  #201908;
  --bg-nav:       rgba(10, 8, 5, 0.98);

  --gold:         #D4A76A;
  --gold-light:   #E8B340;
  --gold-bright:  #F5C842;
  --rust:         #8B4513;
  --rust-dark:    #5C2E2B;
  --rust-light:   #B8614B;
  --green-acid:   #4FD34F;
  --orange:       #B8613A;

  --text-primary: #D4B8A0;
  --text-secondary: #9B8875;
  --text-bright:  #F0E0CC;
  --text-dim:     #564a3f;
  --text-danger:  #FF6B4A;

  --border-dim:   #241d18;
  --border:       #32281f;
  --border-bright:#4a3928;

  --font-heading: 'Rajdhani', Impact, 'Arial Narrow', sans-serif;
  --font-mono:    'Share Tech Mono', 'Courier New', monospace;
  --font-lore:    'Crimson Text', Georgia, serif;

  --glow-rust:  0 0 18px rgba(139,69,19,0.6), 0 0 40px rgba(139,69,19,0.25);
  --glow-gold:  0 0 18px rgba(212,167,106,0.5), 0 0 40px rgba(232,179,64,0.2);
  --glow-acid:  0 0 18px rgba(79,211,79,0.45), 0 0 30px rgba(79,211,79,0.15);
  --shadow-deep: 0 8px 40px rgba(0,0,0,0.85);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.65);

  --transition:      0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: 0.15s ease;
  --radius:          2px;
}

/* =================== RESET & BASE =================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Global noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

img { max-width: 100%; display: block; }
a  { color: var(--gold-light); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--text-bright); }
ul { list-style: none; }

/* =================== KEYFRAMES =================== */
@keyframes glitch {
  0%,100% { transform: translateX(0); clip-path: none; }
  10%      { transform: translateX(-3px); clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%); }
  20%      { transform: translateX(3px);  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); }
  30%      { transform: translateX(0);    clip-path: none; }
  70%      { transform: translateX(-2px); clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%); }
  80%      { transform: translateX(2px);  clip-path: none; }
}

@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes flicker {
  0%,100% { opacity: 1; }
  92%     { opacity: 1; }
  93%     { opacity: 0.6; }
  94%     { opacity: 1; }
  96%     { opacity: 0.8; }
  97%     { opacity: 1; }
}

@keyframes pulse-red {
  0%,100% { box-shadow: 0 0 8px rgba(139,69,19,0.3); }
  50%     { box-shadow: var(--glow-rust); }
}

@keyframes warnStripe {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes borderGlow {
  0%,100% { border-color: var(--border); }
  50%     { border-color: var(--rust-dark); }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes markerPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.6; transform: scale(1.3); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* =================== TYPOGRAPHY =================== */
h1,h2,h3,h4,h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.05em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1rem; }

.lore-text {
  font-family: var(--font-lore);
  font-size: 1.1rem;
  line-height: 1.9;
}

/* =================== UTILITY =================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-alt { background-color: var(--bg-secondary); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rust), transparent);
  margin: 0.5rem auto 0;
}
.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0.75rem auto 0;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--rust-dark);
  color: var(--rust);
  margin-bottom: 1rem;
  background: rgba(139,69,19,0.08);
}

.tag-amber {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212,167,106,0.08);
}

.hidden { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.visible { opacity: 1 !important; transform: translateY(0) !important; }

/* =================== WARNING STRIPE =================== */
.warn-stripe {
  background: repeating-linear-gradient(
    90deg,
    #8B4513 0px, #8B4513 20px,
    #0a0805 20px, #0a0805 40px,
    #D4A76A 40px, #D4A76A 60px,
    #0a0805 60px, #0a0805 80px
  );
  background-size: 80px 100%;
  animation: warnStripe 2s linear infinite;
  height: 4px;
}

.warn-bar {
  background: rgba(139,69,19,0.1);
  border-top: 1px solid var(--rust-dark);
  border-bottom: 1px solid var(--rust-dark);
  padding: 0.4rem 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rust);
  animation: flicker 8s infinite;
}

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.btn:hover::before { transform: translateX(100%); }

.btn-primary {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
}
.btn-primary:hover {
  background: var(--rust-dark);
  border-color: var(--rust-dark);
  box-shadow: var(--glow-rust);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-bright);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

.btn-discord {
  background: #5865F2;
  border-color: #5865F2;
  color: #fff;
}
.btn-discord:hover {
  background: #4752c4;
  border-color: #4752c4;
  box-shadow: 0 0 20px rgba(88,101,242,0.5);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* =================== NAVIGATION =================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-dim);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-bright);
}
.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  fill: var(--rust);
  filter: drop-shadow(var(--glow-rust));
  flex-shrink: 0;
}
.nav-logo .logo-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(139,69,19,0.25));
}
.nav-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-bright);
}
.nav-logo .logo-text span {
  color: var(--rust);
}
.nav-logo:hover .logo-text { color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-bright);
  border-bottom-color: var(--rust);
}
.nav-links .nav-discord {
  margin-left: 0.5rem;
  background: rgba(88,101,242,0.15);
  border: 1px solid rgba(88,101,242,0.4);
  border-radius: 2px;
  color: #a5acf5 !important;
  border-bottom-color: transparent !important;
  padding: 0.45rem 1rem;
}
.nav-links .nav-discord:hover {
  background: rgba(88,101,242,0.3);
  color: #fff !important;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =================== HERO — INDEX =================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(139,69,19,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(120,85,40,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(139,69,19,0.15) 0%, transparent 60%),
    linear-gradient(180deg, #060402 0%, #0c0907 40%, #12100a 70%, #0a0805 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.05) 2px,
    rgba(0,0,0,0.05) 4px
  );
  pointer-events: none;
}

.hero-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(transparent, rgba(139,69,19,0.03) 50%, transparent);
  animation: scanline 8s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-bright);
  line-height: 0.95;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 60px rgba(139,69,19,0.3);
  animation: fadeInUp 0.9s ease 0.1s both;
  position: relative;
}
.hero-title .glitch-text {
  position: relative;
  display: inline-block;
}
.hero-title .glitch-text::before,
.hero-title .glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: var(--rust);
}
.hero-title .glitch-text::before {
  animation: glitch 4s infinite;
  opacity: 0.7;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}
.hero-title .glitch-text::after {
  animation: glitch 4s infinite 0.15s reverse;
  opacity: 0.5;
  clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-desc {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 1s ease 0.35s both;
  font-family: var(--font-lore);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.45s both;
}

.hero-stats {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 3rem;
  z-index: 2;
  animation: fadeIn 1.2s ease 0.8s both;
}
.hero-stat { text-align: center; }
.hero-stat .stat-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rust);
  display: block;
  line-height: 1;
}
.hero-stat .stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}

/* =================== PAGE HERO (internal pages) =================== */
.page-hero {
  position: relative;
  padding: 10rem 2rem 5rem;
  text-align: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #060402 0%, #0e0b07 60%, var(--bg-primary) 100%);
  z-index: 0;
}
.page-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(139,69,19,0.2) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { text-shadow: 0 0 40px rgba(139,69,19,0.25); margin-bottom: 1rem; }
.page-hero p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  max-width: 600px;
  margin: 0 auto;
}

/* =================== CARDS =================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rust-dark), transparent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-alt);
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--rust);
  fill: currentColor;
}
.card-icon.amber { color: var(--gold-light); }

.card h3 { margin-bottom: 0.75rem; font-size: 1.3rem; }
.card p  { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* =================== FEATURES SECTION =================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* =================== SERVER INFO =================== */
.info-strip {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  transition: border-color var(--transition-fast);
}
.info-strip:hover { border-color: var(--border-bright); }
.info-strip .info-icon { color: var(--rust); flex-shrink: 0; font-size: 1.2rem; }
.info-strip .info-label { color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; display: block; }
.info-strip .info-value { color: var(--text-bright); font-size: 0.95rem; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27ae60;
  box-shadow: 0 0 8px rgba(39,174,96,0.6);
  animation: markerPulse 2s ease infinite;
  display: inline-block;
  margin-right: 0.5rem;
}

/* =================== RULES PAGE =================== */
.rules-grid { display: flex; flex-direction: column; gap: 2rem; }

.rule-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}
.rule-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition-fast);
}
.rule-category-header:hover { background: #231a10; }
.rule-category-header .cat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--rust-dark);
  min-width: 2.5rem;
  line-height: 1;
}
.rule-category-header h3 {
  font-size: 1.15rem;
  margin: 0;
  flex: 1;
}
.rule-category-header .cat-icon { color: var(--text-dim); font-size: 1.2rem; transition: transform var(--transition); }
.rule-category.open .cat-icon { transform: rotate(180deg); }

.rule-list {
  padding: 1.5rem 1.75rem;
  display: none;
}
.rule-category.open .rule-list { display: block; }

.rule-item {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-dim);
  align-items: flex-start;
}
.rule-item:last-child { border-bottom: none; }
.rule-num {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--rust);
  min-width: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding-top: 0.1rem;
}
.rule-text { color: var(--text-primary); font-size: 0.92rem; line-height: 1.65; }
.rule-text strong { color: var(--gold-light); font-weight: normal; font-family: var(--font-heading); font-size: 1rem; }
.rule-severity {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 1px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.sev-warn { background: rgba(212,160,23,0.15); color: var(--yellow); border: 1px solid rgba(212,160,23,0.3); }
.sev-ban  { background: rgba(139,69,19,0.15); color: var(--text-danger); border: 1px solid rgba(139,69,19,0.3); }
.sev-mute { background: rgba(142,68,173,0.15); color: #bb8fce; border: 1px solid rgba(142,68,173,0.3); }

/* =================== LORE PAGE =================== */
.lore-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.lore-intro p {
  font-family: var(--font-lore);
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-style: italic;
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-bright) 10%, var(--border-bright) 90%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}
.timeline-item:nth-child(odd)  { flex-direction: row-reverse; }

.timeline-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: relative;
  transition: border-color var(--transition);
}
.timeline-content:hover { border-color: var(--border-bright); }
.timeline-year {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: 0.25rem;
  display: block;
}
.timeline-content h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.timeline-content p  { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

.timeline-dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rust);
  border: 3px solid var(--bg-primary);
  box-shadow: var(--glow-rust);
  margin-top: 1.75rem;
  position: relative;
  z-index: 1;
}

/* Factions */
.factions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.faction-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  transition: all var(--transition);
  cursor: default;
}
.faction-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: var(--shadow-deep);
}
.faction-banner {
  height: 5px;
}
.faction-body { padding: 1.5rem; }
.faction-symbol {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}
.faction-card h4 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-bright); }
.faction-card .faction-tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 1px;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.faction-card p { color: var(--text-secondary); font-size: 0.87rem; margin: 0; }

/* =================== BOUTIQUE PAGE =================== */
.boutique-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.tab-btn {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.tab-btn:hover { border-color: var(--border-bright); color: var(--text-primary); }
.tab-btn.active { background: var(--rust); border-color: var(--rust); color: #fff; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.shop-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.shop-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}
.shop-card-banner {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.shop-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  background: var(--rust);
  color: #fff;
}
.shop-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.shop-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.shop-card .shop-desc { color: var(--text-secondary); font-size: 0.88rem; flex: 1; margin-bottom: 1.25rem; }
.shop-perks { margin-bottom: 1.25rem; }
.shop-perk {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
}
.shop-perk .perk-icon { color: var(--gold-light); font-size: 0.75rem; flex-shrink: 0; }
.shop-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.shop-price .price-unit { font-size: 0.85rem; color: var(--text-dim); font-weight: 400; font-family: var(--font-mono); }
.shop-card .btn { width: 100%; justify-content: center; }

.shop-note {
  text-align: center;
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.88rem;
}
.shop-note strong { color: var(--gold-light); }

/* =================== GALERIE PAGE =================== */
.gallery-filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
/* tab-btn also used here */

.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform var(--transition);
  filter: saturate(0.7) contrast(1.1);
}
.gallery-item:hover img { transform: scale(1.04); filter: saturate(0.9) contrast(1.1); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.8));
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { color: #fff; font-size: 0.82rem; }

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}
.video-card:hover { border-color: var(--border-bright); transform: translateY(-3px); }
.video-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-card-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.video-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,69,19,0.05), transparent);
}
.video-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(139,69,19,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 1;
}
.video-play-btn:hover { background: var(--rust); transform: scale(1.1); }
.video-info { padding: 1rem 1.25rem; }
.video-info h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.video-info .video-meta { font-size: 0.8rem; color: var(--text-dim); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; animation: fadeIn 0.25s ease; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border: 1px solid var(--border); }
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color var(--transition-fast);
}
.lightbox-close:hover { color: var(--rust); }

/* Submission CTA */
.submit-cta {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}
.submit-cta h3 { margin-bottom: 0.75rem; }
.submit-cta p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* =================== FOOTER =================== */
footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border-dim);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  display: block;
}
.footer-logo-image {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 0 16px rgba(139,69,19,0.22));
}
.footer-brand .logo-text span { color: var(--rust); }
.footer-brand p { color: var(--text-dim); font-size: 0.87rem; max-width: 280px; }
.footer-col h5 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text-dim); font-size: 0.88rem; transition: color var(--transition-fast); }
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-dim); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold-light); }

/* =================== ABOUT SECTION (index) =================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text .tag { margin-bottom: 1rem; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--text-secondary); margin-bottom: 1rem; }

.about-visual {
  position: relative;
  padding: 1rem;
}
.about-frame {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.5rem;
  position: relative;
}
.about-frame::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid var(--border-dim);
  pointer-events: none;
}

.counter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.counter-item { text-align: center; padding: 1.25rem; background: var(--bg-card-alt); border: 1px solid var(--border); }
.counter-val {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--rust);
  display: block;
  line-height: 1;
}
.counter-label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); margin-top: 0.3rem; }

/* Lore teaser section */
.lore-teaser {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.lore-teaser blockquote {
  font-family: var(--font-lore);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text-primary);
  border-left: 3px solid var(--rust);
  padding: 1.25rem 1.75rem;
  background: var(--bg-card);
  text-align: left;
  margin: 2rem 0;
  line-height: 1.8;
}
.lore-teaser blockquote cite {
  display: block;
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

/* =================== BREADCRUMB =================== */
.breadcrumb {
  padding: 0.75rem 2rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-dim);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: var(--text-primary); }

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid  { gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links    { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-nav); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a  { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-dim); border-right: none; }
  .nav-links .nav-discord { margin: 0.5rem 0 0; }
  .nav-burger   { display: flex; }
  #navbar       { position: relative; }

  .hero-stats   { gap: 1.5rem; }
  .about-grid   { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline-item, .timeline-item:nth-child(odd) { flex-direction: column; }
  .timeline-dot { display: none; }
  .gallery-grid { columns: 2; }
  .footer-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 500px) {
  .hero { padding: 7rem 1.5rem 6rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .gallery-grid { columns: 1; }
  .counter-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.5rem 0; }
}



