:root {
  --black: #060a08;
  --dark: #0a100c;
  --panel: #0f1411;
  --green: #00FF41;
  --green-bright: #5CFF8A;
  --green-dim: #1a7a35;
  --lime: #B8FF00;
  --white: #e4eaf0;
  --grey: #3a4438;
  --grey-light: #7a8a7e;
  --scanline-opacity: 0.16;
  --nav-height: 56px;
  --ticker-height: 32px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Share Tech Mono', monospace;
  overflow-x: hidden;
  cursor: crosshair;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,var(--scanline-opacity)) 2px,
    rgba(0,0,0,var(--scanline-opacity)) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

@keyframes glitch-text {
  0%,90%,100% { text-shadow: 3px 0 var(--green), -3px 0 var(--green-dim); }
  91% { text-shadow: -6px 0 var(--lime), 6px 0 var(--green); transform: translateX(3px); }
  93% { text-shadow: 6px 0 var(--lime), -6px 0 var(--green); transform: translateX(-3px); }
  95% { text-shadow: 3px 0 var(--green), -3px 0 var(--green-dim); transform: translateX(0); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.75; }
}

@keyframes flicker {
  0%,100% { opacity: 1; }
  93% { opacity: 0.4; }
  94% { opacity: 1; }
}

@keyframes neon-pulse-green {
  0%,100% { text-shadow: 0 0 5px var(--green), 0 0 10px var(--green), 0 0 20px var(--green-dim); }
  50% { text-shadow: 0 0 10px var(--lime), 0 0 25px var(--green), 0 0 50px var(--green-dim); }
}

@keyframes scanline-move {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes viewer-grid-pulse {
  0%,100% { opacity: 0.04; }
  50% { opacity: 0.08; }
}

.scan-move {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(transparent, rgba(0,255,65,0.05), transparent);
  pointer-events: none;
  z-index: 9998;
  animation: scanline-move 6s linear infinite;
}

.landing {
  height: calc(100dvh - var(--nav-height));
  max-height: calc(100dvh - var(--nav-height));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: var(--nav-height);
  background: rgba(6,10,8,0.95);
  border-bottom: 1px solid rgba(0,255,65,0.25);
  backdrop-filter: blur(8px);
}

.nav-logo {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
  image-rendering: pixelated;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  color: var(--grey-light);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green); }

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'VT323', monospace;
  font-size: 18px;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--green);
}

.status-value { color: var(--green); letter-spacing: 1px; }

.ticker-wrap {
  overflow: hidden;
  background: var(--green);
  height: var(--ticker-height);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-bottom: 2px solid var(--green-dim);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--black);
  letter-spacing: 1px;
}

.ticker-item { padding: 0 32px; }
.ticker-sep { padding: 0 8px; opacity: 0.5; }

.hero {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding: clamp(12px, 2.5vh, 28px) clamp(24px, 5vw, 80px);
  gap: clamp(20px, 3vw, 48px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0,255,65,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(184,255,0,0.06) 0%, transparent 60%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,65,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,65,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  animation: viewer-grid-pulse 4s ease-in-out infinite;
}

.hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-family: 'VT323', monospace;
  font-size: clamp(14px, 1.8vh, 18px);
  color: var(--green);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: clamp(8px, 1.5vh, 14px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--green);
}

.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(18px, 3.2vw, 32px);
  line-height: 1.45;
  color: var(--white);
  animation: glitch-text 8s ease-in-out infinite;
  margin-bottom: clamp(10px, 2vh, 18px);
}

.hero-title span { color: var(--lime); display: block; }

.hero-tagline {
  font-family: 'VT323', monospace;
  font-size: clamp(18px, 2.5vh, 24px);
  color: var(--green-bright);
  margin-bottom: clamp(10px, 2vh, 20px);
  line-height: 1.35;
  max-width: 480px;
}

.hero-desc {
  font-size: clamp(12px, 1.6vh, 14px);
  color: var(--grey-light);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: clamp(12px, 2.5vh, 24px);
}

.hero-desc strong { color: var(--green); }

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--black);
  background: var(--green);
  border: none;
  padding: clamp(10px, 1.5vh, 14px) clamp(18px, 2.5vw, 24px);
  cursor: pointer;
  letter-spacing: 1px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--green);
}

.btn-secondary {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--green);
  padding: clamp(10px, 1.5vh, 14px) clamp(18px, 2.5vw, 24px);
  cursor: pointer;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
}

.btn-secondary:hover {
  background: rgba(0,255,65,0.1);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(0,255,65,0.3);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(12px, 2vh, 20px);
}

.tag {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: var(--grey-light);
  border: 1px solid var(--grey);
  padding: 4px 10px;
  letter-spacing: 2px;
}

.hero-right {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
}

.hero-img-frame {
  position: relative;
  width: 100%;
  border: 2px solid rgba(0,255,65,0.4);
  overflow: hidden;
  background: var(--panel);
}

.hero-img-frame::after {
  content: 'IN-GAME';
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: var(--green);
  letter-spacing: 3px;
  opacity: 0.7;
  z-index: 2;
}

.corner-tag {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  border-top: 24px solid var(--green);
  border-right: 24px solid transparent;
  z-index: 3;
}

.hero-img-frame img {
  width: 100%;
  max-height: calc(100dvh - var(--nav-height) - var(--ticker-height) - 48px);
  display: block;
  object-fit: cover;
}

.spec-strip {
  background: var(--dark);
  padding: 32px 80px;
  display: flex;
  gap: 48px;
  align-items: center;
  border-top: 1px solid var(--grey);
  border-bottom: 1px solid var(--grey);
  overflow-x: auto;
}

.spec-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--grey-light);
  white-space: nowrap;
}

.spec-items {
  display: flex;
  gap: 48px;
  flex: 1;
  justify-content: space-around;
}

.spec-item { text-align: center; min-width: 100px; }

.spec-value {
  font-family: 'VT323', monospace;
  font-size: 36px;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}

.spec-name {
  font-size: 10px;
  color: var(--grey-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

section { padding: 80px; }

.section-label {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--green);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 13px;
  color: var(--grey-light);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 48px;
}

.shots-section { background: var(--black); }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--grey);
  border: 1px solid var(--grey);
}

.shot-cell {
  position: relative;
  background: var(--panel);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
}

.shot-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.shot-cell:hover img { transform: scale(1.03); }

.controls-section { background: var(--dark); }

.controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--grey);
  border: 1px solid var(--grey);
  max-width: 720px;
}

.control-cell {
  background: var(--panel);
  padding: 24px 20px;
  text-align: center;
}

.control-key {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--green);
  margin-bottom: 8px;
}

.control-action {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--grey-light);
  letter-spacing: 2px;
}

.results-section { background: var(--black); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--grey);
  border: 1px solid var(--grey);
  max-width: 900px;
}

.result-cell {
  background: var(--panel);
  padding: 28px 20px;
  text-align: center;
}

.result-rank {
  font-family: 'VT323', monospace;
  font-size: 42px;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}

.result-cat {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--grey-light);
  letter-spacing: 1px;
}

.results-note {
  margin-top: 24px;
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--grey-light);
  letter-spacing: 1px;
}

.quote-block {
  margin-top: 48px;
  padding: 24px 28px;
  border-left: 3px solid var(--green);
  background: rgba(0,255,65,0.04);
  max-width: 560px;
}

.quote-text {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: var(--white);
  line-height: 1.45;
  margin-bottom: 10px;
}

.quote-author {
  font-size: 12px;
  color: var(--green);
  letter-spacing: 2px;
}

.dev-section {
  background: var(--dark);
  padding: 60px 80px;
  display: flex;
  gap: 48px;
  align-items: center;
  border-top: 1px solid rgba(0,255,65,0.2);
}

.dev-logo img {
  height: 80px;
  object-fit: contain;
  image-rendering: pixelated;
}

.dev-label {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: var(--green);
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.dev-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 12px;
}

.dev-desc {
  font-size: 12px;
  color: var(--grey-light);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 16px;
}

.credits-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.credit-card {
  flex: 1;
  min-width: 180px;
  padding: 16px 20px;
  border: 1px solid var(--grey);
  background: rgba(0,255,65,0.03);
}

.credit-role {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: var(--green);
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.credit-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--white);
}

.dev-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dev-badge {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: var(--grey-light);
  border: 1px solid var(--grey);
  padding: 4px 12px;
  letter-spacing: 2px;
}

.dev-status { margin-left: auto; text-align: right; }

.dev-status-label {
  font-size: 10px;
  color: var(--grey-light);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.dev-status-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--green);
  animation: neon-pulse-green 2s ease-in-out infinite;
}

footer {
  background: var(--black);
  border-top: 1px solid rgba(0,255,65,0.2);
  padding: 32px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--green);
}

.footer-note {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 1px;
  max-width: 400px;
  text-align: center;
  line-height: 1.6;
}

.footer-tag {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--lime);
  letter-spacing: 2px;
  animation: flicker 5s linear infinite;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border: 2px solid var(--green);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--green);
  cursor: pointer;
  background: none;
  border: none;
}

@media (max-width: 900px) {
  .landing {
    height: auto;
    max-height: none;
    min-height: calc(100dvh - var(--nav-height));
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .hero-right { order: -1; min-height: 240px; }
  section { padding: 60px 32px; }
  .spec-strip { padding: 24px 32px; flex-wrap: wrap; }
  .spec-items { gap: 24px; }
  .shot-grid { grid-template-columns: 1fr 1fr; }
  .controls-grid { grid-template-columns: 1fr 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-section {
    flex-direction: column;
    padding: 48px 32px;
    text-align: center;
  }
  .dev-status { margin-left: 0; text-align: center; }
  footer { padding: 32px; flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .shot-grid { grid-template-columns: 1fr; }
  .controls-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr 1fr; }
}
