:root {
  --bg: #070b0a;
  --panel: #0d1412;
  --green: #7df56a;
  --red: #ff3b30;
  --purple: #b06bff;
  --amber: #ffc247;
  --text: #d4e6da;
  --dim: #6f8a7c;
  --border: #1c2b23;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: SFMono-Regular, Consolas, Menlo, monospace;
  font-size: 15px;
  line-height: 1.6;
  background-image: linear-gradient(rgba(125, 245, 106, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 245, 106, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  overflow-x: hidden;
}
a { color: var(--green); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(7, 11, 10, 0.95);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: bold; color: var(--text); }
.rec-dot {
  width: 10px; height: 10px; background: var(--red); border-radius: 50%;
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links li a { color: var(--text); font-size: 14px; transition: color 0.2s; }
.nav-links li a:hover { color: var(--green); }
.menu-toggle { display: none; background: none; border: none; color: var(--green); font-size: 24px; cursor: pointer; }

/* Hero */
.hero { padding: 120px 0 80px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.case-file { color: var(--amber); font-size: 13px; letter-spacing: 2px; margin-bottom: 15px; }
h1 { font-size: 42px; line-height: 1.2; margin-bottom: 15px; color: #fff; }
.sub-title { font-size: 18px; color: var(--dim); margin-bottom: 25px; }
.hero-desc { margin-bottom: 30px; color: var(--text); }
.btn-group { display: flex; gap: 15px; margin-bottom: 30px; }
.btn-primary, .btn-secondary {
  padding: 12px 24px; border: 1px solid transparent; font-family: inherit; font-size: 15px; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--red); color: #fff; font-weight: bold; }
.btn-primary:hover { background: #e63329; }
.btn-secondary { background: transparent; border-color: var(--green); color: var(--green); }
.btn-secondary:hover { background: rgba(125, 245, 106, 0.1); }
.meta-info { display: flex; gap: 20px; font-size: 13px; color: var(--dim); flex-wrap: wrap; }
.meta-tag { border: 1px solid var(--border); padding: 4px 8px; }

/* Cam Card */
.cam-card { border: 1px solid var(--border); background: var(--panel); position: relative; }
.cam-header { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--red); align-items: center; }
.cam-header .cam-id { color: var(--text); }
.cam-view { position: relative; overflow: hidden; }
.cam-view img { width: 100%; height: auto; display: block; filter: contrast(1.2) brightness(0.9); }
.cam-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}
.cam-crosshair {
  position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%);
  border: 1px solid rgba(125, 245, 106, 0.4); border-radius: 50%;
}
.cam-crosshair::before, .cam-crosshair::after {
  content: ''; position: absolute; background: rgba(125, 245, 106, 0.4);
}
.cam-crosshair::before { top: 50%; left: -10px; width: 60px; height: 1px; }
.cam-crosshair::after { left: 50%; top: -10px; width: 1px; height: 60px; }
.cam-footer { padding: 10px; font-size: 12px; color: var(--amber); display: flex; justify-content: space-between; border-top: 1px solid var(--border); }

/* Sections Generic */
section { padding: 80px 0; border-top: 1px solid var(--border); }
.section-title { font-size: 28px; color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: '//'; color: var(--green); }
.section-sub { color: var(--dim); margin-bottom: 40px; font-size: 14px; }

/* Archive Grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.archive-card { border: 1px solid var(--border); background: var(--panel); display: flex; flex-direction: column; }
.archive-card img { width: 100%; height: 180px; object-fit: cover; border-bottom: 1px solid var(--border); }
.archive-content { padding: 15px; }
.archive-content h3 { font-size: 16px; color: var(--green); margin-bottom: 8px; }
.archive-content p { font-size: 13px; color: var(--dim); }

/* Flow Grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flow-card { border: 1px solid var(--border); background: var(--panel); }
.flow-card img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid var(--border); }
.flow-content { padding: 20px; }
.step-num { color: var(--amber); font-size: 12px; margin-bottom: 5px; }
.flow-content h3 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.flow-content p { font-size: 14px; color: var(--dim); }

/* Factions */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.faction-card { border: 1px solid var(--border); background: var(--panel); padding: 30px; }
.faction-card.survivor { border-color: var(--green); }
.faction-card.ghost { border-color: var(--purple); }
.faction-card h3 { font-size: 22px; margin-bottom: 15px; }
.faction-card.survivor h3 { color: var(--green); }
.faction-card.ghost h3 { color: var(--purple); }
.faction-card ul { list-style: none; margin-top: 20px; }
.faction-card li { margin-bottom: 10px; padding-left: 20px; position: relative; font-size: 14px; }
.faction-card li::before { content: '>'; position: absolute; left: 0; color: var(--dim); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.gallery-item { cursor: pointer; border: 1px solid var(--border); position: relative; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: 'VIEW'; position: absolute; bottom: 5px; right: 5px;
  font-size: 10px; color: var(--green); background: rgba(0,0,0,0.7); padding: 2px 4px; border: 1px solid var(--green);
}

/* Equipment */
.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.equip-card { border: 1px solid var(--border); background: var(--panel); padding: 20px; position: relative; }
.equip-color-bar { height: 3px; width: 100%; position: absolute; top: 0; left: 0; }
.equip-card h3 { font-size: 16px; color: #fff; margin-bottom: 10px; margin-top: 5px; }
.equip-card p { font-size: 13px; color: var(--dim); }

/* Wishlist */
.wishlist-item { border: 1px solid var(--border); background: var(--panel); padding: 20px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.wish-info h3 { font-size: 16px; color: #fff; margin-bottom: 5px; }
.wish-info p { font-size: 12px; color: var(--dim); }
.wish-action { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: 200px; }
.wish-progress { width: 100%; height: 6px; background: var(--border); position: relative; }
.wish-progress-bar { height: 100%; background: var(--green); width: 0; transition: width 0.3s; }
.btn-wish { background: none; border: 1px solid var(--green); color: var(--green); padding: 4px 10px; font-size: 12px; cursor: pointer; }
.btn-wish.joined { border-color: var(--dim); color: var(--dim); pointer-events: none; }
.wish-count { font-size: 11px; color: var(--amber); }

/* Reviews */
.review-card { border: 1px solid var(--border); background: var(--panel); padding: 20px; margin-bottom: 15px; }
.review-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12px; color: var(--dim); }
.review-stars { color: var(--amber); }
.review-text { font-size: 14px; }

/* Download CTA */
.cta-block {
  border: 2px solid var(--green); background: var(--panel); padding: 50px 20px; text-align: center;
}
.cta-block h2 { font-size: 32px; color: #fff; margin-bottom: 15px; }
.cta-block p { color: var(--dim); margin-bottom: 30px; }
.btn-download-large {
  display: inline-block; background: var(--red); color: #fff; font-size: 20px; font-weight: bold; padding: 15px 40px; border: none; cursor: pointer; text-transform: uppercase;
}
.btn-download-large:hover { background: #e63329; }
.platforms { margin-top: 20px; font-size: 12px; color: var(--dim); display: flex; justify-content: center; gap: 15px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; font-size: 12px; color: var(--dim); text-align: center; }
footer a { color: var(--dim); }
footer a:hover { color: var(--text); }
.footer-content { margin-bottom: 20px; }
.about-section { margin-top: 20px; border-top: 1px dashed var(--border); padding-top: 20px; }
details { display: inline-block; text-align: left; }
summary { cursor: pointer; list-style: none; display: inline-block; color: var(--dim); }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--text); }
.about-content { margin-top: 10px; font-size: 12px; line-height: 2; color: var(--dim); }
.about-content a { margin-right: 10px; color: var(--dim); }
.about-content a:hover { color: var(--green); }

/* Lightbox */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 999; justify-content: center; align-items: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; border: 1px solid var(--green); }
.close-btn { position: absolute; top: 20px; right: 20px; color: #fff; font-size: 30px; cursor: pointer; background: none; border: none; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 60px; left: 0; width: 100%; background: var(--panel); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border); }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  h1 { font-size: 32px; }
  .grid-4, .grid-3, .grid-2, .gallery-grid, .equip-grid { grid-template-columns: 1fr; }
  .wishlist-item { flex-direction: column; align-items: flex-start; gap: 15px; }
  .wish-action { width: 100%; align-items: flex-start; }
  .btn-group { flex-direction: column; }
  .meta-info { flex-direction: column; gap: 5px; }
}