/* MultiPirates Landing Page Styles */

:root {
  --color-bg: #000000;
  --color-primary: #00ffff;
  --color-primary-dim: #00aaaa;
  --color-accent: #00ff00;
  --color-text: #ffffff;
  --color-muted: #668888;
  --color-warning: #ffcc00;
  --color-danger: #ff4444;
  --color-card-bg: rgba(0, 40, 50, 0.6);
  --color-card-border: rgba(0, 255, 255, 0.3);
  --font-main: 'Press Start 2P', monospace;
  --glow-primary: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary-dim);
  --glow-accent: 0 0 10px var(--color-accent), 0 0 20px rgba(0, 255, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  overflow-x: hidden;
  width: 100%;
}

/* Parallax Background */
.parallax-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-repeat: repeat;
  background-size: 512px 512px;
}

.stars-far {
  background-image: url('assets/bg/stars1.png');
  opacity: 0.4;
}

.stars-mid {
  background-image: url('assets/bg/stars2.png');
  opacity: 0.6;
}

.stars-close {
  background-image: url('assets/bg/stars3.png');
  opacity: 0.8;
}

/* Scan Lines Overlay */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1) 0px,
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.3;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.nav-logo {
  font-size: 14px;
  color: var(--color-primary);
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 10px var(--color-primary),
    0 0 20px var(--color-primary-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  height: 24px;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 8px var(--color-primary)) drop-shadow(0 0 16px var(--color-primary-dim));
}

.nav-version {
  font-size: 8px;
  color: var(--color-muted);
  text-shadow: none;
}

/* Hamburger Menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transition: all 0.3s ease;
  box-shadow: var(--glow-primary);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
  display: none;
}

.nav-hamburger {
  display: flex;
}

.nav-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile menu header */
.nav-menu-header {
  display: none;
}

.nav-links a::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nav-color, var(--color-primary));
  opacity: 0.4;
  box-shadow: 0 0 4px var(--nav-color, var(--color-primary)), 0 0 8px var(--nav-color-dim, var(--color-primary-dim));
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Color-coded nav links (matching in-game MapOverlay) */
.nav-links a[data-color="cyan"] {
  --nav-color: var(--map-color-cyan);
  --nav-color-dim: var(--map-color-cyan-dim);
}
.nav-links a[data-color="green"] {
  --nav-color: var(--map-color-green);
  --nav-color-dim: var(--map-color-green-dim);
}
.nav-links a[data-color="red"] {
  --nav-color: var(--map-color-red);
  --nav-color-dim: var(--map-color-red-dim);
}
.nav-links a[data-color="yellow"] {
  --nav-color: var(--map-color-yellow);
  --nav-color-dim: var(--map-color-yellow-dim);
}
.nav-links a[data-color="gray"] {
  --nav-color: var(--map-color-gray);
  --nav-color-dim: var(--map-color-gray-dim);
}
.nav-links a[data-color="blue"] {
  --nav-color: var(--map-color-blue);
  --nav-color-dim: var(--map-color-blue-dim);
}
.nav-links a[data-color="orange"] {
  --nav-color: var(--map-color-orange);
  --nav-color-dim: var(--map-color-orange-dim);
}

.nav-links a:hover {
  color: var(--nav-color, var(--color-primary));
  text-shadow: 0 0 8px var(--nav-color, var(--color-primary));
}

.nav-links a:hover::before {
  opacity: 1;
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--nav-color, var(--color-primary)), 0 0 16px var(--nav-color, var(--color-primary));
}

.nav-play {
  background: var(--color-primary);
  color: var(--color-bg) !important;
  padding: 10px 20px;
  border-radius: 4px;
  text-shadow: none !important;
}

.nav-play:hover {
  background: var(--color-accent);
  transform: scale(1.05);
}

/* Persistent Play Now button - always visible in header */
.nav-play-persistent {
  background: var(--color-primary);
  color: var(--color-bg) !important;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 10px;
  font-weight: bold;
  text-shadow: none;
  transition: all 0.3s ease;
  margin-left: auto;
  margin-right: 15px;
}

.nav-play-persistent:hover {
  background: var(--color-accent);
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 100px 20px;
  overflow: hidden;
  width: 100%;
}

/* Floating Debris */
.floating-debris {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.debris-item {
  position: absolute;
  image-rendering: pixelated;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Hero Planetscape Background (procedural space view) */
.hero-planetscape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  opacity: 0.9;
  pointer-events: none; /* Allow scrolling through */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-planetscape canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none; /* Allow scrolling through */
}

/* Fallback hero planet (legacy) */
.hero-planet {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  animation: float 8s ease-in-out infinite;
  opacity: 0.8;
  transition: transform 0.15s ease-out;
  z-index: 2;
}

.planet-img {
  width: 300px;
  height: 300px;
  filter: drop-shadow(0 0 30px rgba(100, 150, 255, 0.5));
}

@keyframes float {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-55%) translateX(10px); }
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 800px;
  transition: transform 0.15s ease-out;
  margin-top: -80px;
}

.version-badge {
  display: inline-block;
  background: rgba(0, 255, 255, 0.2);
  border: 1px solid var(--color-primary);
  padding: 5px 15px;
  font-size: 10px;
  color: var(--color-primary);
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 48px;
  color: var(--color-primary);
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 10px var(--color-primary),
    0 0 20px var(--color-primary-dim);
  margin-bottom: 20px;
  letter-spacing: 4px;
  animation: titlePulse 3s ease-in-out infinite;
}

.hero-logo {
  height: 80px;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 10px var(--color-primary)) drop-shadow(0 0 20px var(--color-primary-dim));
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 10px var(--color-primary)) drop-shadow(0 0 20px var(--color-primary-dim)); }
  50% { filter: drop-shadow(0 0 20px var(--color-primary)) drop-shadow(0 0 40px var(--color-primary-dim)) drop-shadow(0 0 60px var(--color-primary-dim)); }
}

@keyframes titlePulse {
  0%, 100% { text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 0 10px var(--color-primary), 0 0 20px var(--color-primary-dim); }
  50% { text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 0 20px var(--color-primary), 0 0 40px var(--color-primary-dim), 0 0 60px var(--color-primary-dim); }
}

.hero-description {
  font-size: 14px;
  color: #aacccc;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
  text-shadow: 0 0 10px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 0, 0, 1), 0 2px 4px rgba(0, 0, 0, 1);
  min-height: 60px;
  text-align: center;
}

.hero-description .tagline {
  font-size: 14px;
  color: var(--color-accent);
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 10px var(--color-accent),
    0 0 20px rgba(0, 255, 0, 0.5);
  display: inline;
}

.hero-typing {
  display: inline;
}

.hero-typing .tagline {
  font-size: 16px;
  color: var(--color-accent);
  text-shadow: var(--glow-accent);
}

.typing-cursor {
  color: var(--color-primary);
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.cta-button {
  display: inline-block;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dim) 100%);
  color: var(--color-bg);
  padding: 20px 50px;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  border: 2px solid var(--color-primary);
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.cta-button:hover {
  background: linear-gradient(180deg, var(--color-accent) 0%, #00aa00 100%);
  border-color: var(--color-accent);
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cta-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary-dim);
  box-shadow: none;
}

.cta-secondary:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.hero-beta-cta {
  background: rgba(68, 34, 0, 0.8);
  border-color: #ffaa00;
  color: #ffaa00;
}

.hero-beta-cta:hover {
  background: rgba(100, 50, 0, 0.9);
  border-color: #ffcc44;
  box-shadow: 0 0 25px rgba(255, 170, 0, 0.5);
}

/* Hero planet navigation buttons */
.hero-nav-btn {
  background: transparent;
  border: 2px solid var(--color-primary-dim);
  color: var(--color-primary);
  padding: 20px 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  flex-shrink: 0;
}

.hero-nav-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  transform: scale(1.05);
}

/* New hero bottom UI layout */
.hero-bottom-ui {
  position: absolute;
  bottom: 120px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 10;
}

.hero-left-section {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.hero-right-section {
  position: absolute;
  bottom: 20px;
  right: 20px;
  text-align: center;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  z-index: 10;
}

.hero-expandable-content p {
  font-size: 9px;
  color: var(--color-muted);
  margin: 0 0 10px 0;
  line-height: 1.5;
  text-align: center;
}

.hero-tagline {
  margin-bottom: 25px;
  text-align: center;
}

.hero-tagline .tagline {
  font-size: 20px;
  color: var(--color-accent);
  text-shadow: var(--glow-accent);
  font-weight: bold;
  display: inline;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .hero-bottom-ui {
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
    gap: 20px;
  }

  .hero-left-section {
    max-width: 100%;
  }

  .hero-tagline {
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }
}

.hero-social-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hero-social-links a {
  color: var(--color-primary-dim);
  text-decoration: none;
  font-size: 9px;
  padding: 5px 10px;
  border: 1px solid var(--color-card-border);
  border-radius: 3px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.hero-social-links a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  text-shadow: var(--glow-primary);
  background: rgba(0, 255, 255, 0.1);
}

.hero-portrait {
  margin: 0 auto;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-portrait img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-primary-dim);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  transition: all 0.3s ease;
  image-rendering: auto;
}

.hero-portrait:hover img {
  border-color: var(--color-primary);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
  transform: scale(1.1);
}

/* Expandable content - hidden by default */
.hero-expandable-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  margin-top: 0;
  background: rgba(5, 15, 20, 0.95);
  border: 1px solid var(--color-primary-dim);
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  padding: 0;
  max-width: 280px;
}

.hero-expandable-content.expanded {
  max-height: 400px;
  opacity: 1;
  margin-top: 15px;
  padding: 12px;
}

.hero-signature {
  font-size: 8px;
  color: var(--color-dim);
  font-style: italic;
  margin: 0;
  text-align: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s ease-in-out infinite;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.scroll-indicator span {
  font-size: 9px;
  color: var(--color-primary);
  display: block;
  margin-bottom: 10px;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 10px rgba(0, 255, 255, 0.5);
  font-weight: bold;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  margin: 0 auto;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Hook Section */
.hook {
  padding: 80px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 20, 30, 0.8) 0%, rgba(0, 40, 50, 0.6) 50%, transparent 100%);
}

.hook-content {
  max-width: 700px;
  margin: 0 auto;
}

.hook-line {
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 30px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hook-options {
  position: relative;
  height: 24px;
  margin-bottom: 30px;
}

.hook-options span {
  position: absolute;
  left: 0;
  right: 0;
  font-size: 13px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hook-options span.active {
  opacity: 1;
  transform: translateY(0);
}

.hook-options span.hook-final {
  color: var(--color-accent);
  text-shadow: var(--glow-accent);
}

.hook-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px var(--color-primary-dim);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2), inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.hook-cta:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-shadow: var(--glow-accent);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4), inset 0 0 30px rgba(0, 255, 255, 0.1);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hook {
    padding: 60px 20px;
  }

  .hook-line {
    font-size: 14px;
  }

  .hook-options span {
    font-size: 11px;
  }

  .hook-choice {
    font-size: 12px;
  }
}

/* Gameplay Pitch Section */
.gameplay-pitch {
  padding: 60px 40px;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 20, 30, 0.6) 20%, rgba(0, 20, 30, 0.6) 80%, transparent 100%);
}

.pitch-content {
  max-width: 700px;
  margin: 0 auto;
}

.pitch-references {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.pitch-line {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
}

.pitch-ref {
  color: var(--color-primary);
  text-shadow: var(--glow-primary);
}

.pitch-summary {
  font-size: 12px;
  line-height: 2;
  color: var(--color-text);
  margin-bottom: 20px;
}

.pitch-features {
  font-size: 11px;
  line-height: 2;
  color: var(--color-accent);
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

@media (max-width: 768px) {
  .gameplay-pitch {
    padding: 40px 20px;
  }

  .pitch-references {
    flex-direction: column;
    gap: 10px;
  }

  .pitch-line {
    font-size: 12px;
  }

  .pitch-summary,
  .pitch-features {
    font-size: 10px;
  }
}

/* Section Styles */
section {
  padding: 100px 40px;
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

/* Screenshot Carousel */
.screenshot-carousel {
  position: relative;
  width: 400px;
  max-width: 100%;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--color-card-border);
  background: var(--color-card-bg);
}

.carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
  transition: transform 0.3s ease;
}

.carousel-slide:hover img {
  transform: scale(1.02);
}

.carousel-slide p {
  padding: 12px;
  font-size: 10px;
  color: var(--color-primary);
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  margin: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  background: rgba(0, 40, 50, 0.8);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-main);
  font-size: 16px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--color-primary);
  color: var(--color-bg);
}

.carousel-prev {
  left: -18px;
}

.carousel-next {
  right: -18px;
}

.carousel-dots {
  text-align: center;
  padding: 15px 0;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: var(--color-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  image-rendering: pixelated;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.lightbox-caption {
  margin-top: 20px;
  font-size: 12px;
  color: var(--color-primary);
  text-shadow: var(--glow-primary);
}

.section-title {
  font-size: 24px;
  color: var(--color-primary);
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 10px var(--color-primary),
    0 0 20px var(--color-primary-dim);
  text-align: center;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 10px;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 60px;
}

/* Features Section */
.features {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 40, 50, 0.3) 50%, transparent 100%);
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 60px auto 0;
}

.feature-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.feature-card h3 {
  font-size: 12px;
  color: var(--color-primary);
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 10px var(--color-primary),
    0 0 20px var(--color-primary-dim);
  margin-bottom: 15px;
}

.feature-card p {
  font-size: 10px;
  color: var(--color-muted);
  line-height: 2;
}

.features-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px var(--color-primary-dim);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2), inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.features-cta:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-shadow: var(--glow-accent);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4), inset 0 0 30px rgba(0, 255, 255, 0.1);
  transform: translateY(-2px);
}


/* Ships Section */
.ships {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 50, 40, 0.3) 50%, transparent 100%);
  text-align: center;
}

.ships .section-title {
  font-size: 32px;
}

.ships-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.ship-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.ship-card:hover {
  border-color: var(--color-accent);
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

.ship-card-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: shipHover 4s ease-in-out infinite;
}

.ship-card-image img {
  image-rendering: pixelated;
  filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.5));
  transform: scale(4);
}

@keyframes shipHover {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

.ship-card-name {
  font-size: 14px;
  color: var(--color-accent);
  margin-bottom: 8px;
  text-shadow: var(--glow-accent);
}

.ship-card-type {
  font-size: 8px;
  color: var(--color-primary);
  margin-bottom: 15px;
  line-height: 1;
}

.ship-card-desc {
  font-size: 9px;
  color: var(--color-muted);
  line-height: 1.8;
  flex-grow: 1;
  margin-bottom: 20px;
}

.ship-card-btn {
  padding: 12px 30px;
  font-size: 10px;
  margin-top: auto;
}

.ship-card-stats {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--color-card-border);
}

.ship-card-stats .stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ship-card-stats .stat-row .stat-label {
  width: 45px;
  text-align: right;
  color: var(--color-muted);
  font-size: 7px;
}

/* Segmented stat bars - matching game UI */
.stat-segments {
  display: flex;
  gap: 3px;
  align-items: center;
}

.stat-segment {
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  object-fit: contain;
  image-rendering: pixelated;
  transition: opacity 0.2s ease;
}

.stat-segment.empty {
  opacity: 0.2;
}

.stat-segment.filled {
  opacity: 1;
}

/* Ship Selector - Horizontal Layout (Matching In-Game) */
.ship-selector-horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.ship-nav-arrow {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-family: var(--font-main);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 10px;
  text-shadow: var(--glow-primary);
}

.ship-nav-arrow:hover {
  color: #66ffff;
  text-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
  transform: scale(1.1);
}

.ship-nav-arrow.prev:hover {
  transform: scale(1.1) translateX(-3px);
}

.ship-nav-arrow.next:hover {
  transform: scale(1.1) translateX(3px);
}

.ship-display-horizontal {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 2rem;
  background: rgba(0, 20, 30, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.15);
}

/* Ship sprite with targeting overlay (left side) */
.ship-sprite-container {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG targeting overlay */
.ship-targeting-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Arc segments */
.arc-segment {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.arc-segment.outer {
  stroke: var(--color-primary-dim);
  opacity: 0.4;
}

.arc-segment.inner {
  stroke: var(--color-primary);
  opacity: 0.5;
}

/* Corner brackets */
.bracket {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linecap: square;
}

/* Tech detail lines */
.tech-line {
  stroke: #44ffff;
  stroke-width: 1;
  opacity: 0.6;
}

/* Scan lines */
.scan-line {
  stroke: #44ffff;
  stroke-width: 1;
  opacity: 0.4;
}

/* Arc rotation animations via CSS (JS will enhance) */
.outer-arcs {
  transform-origin: 100px 100px;
  animation: rotateClockwise 8s linear infinite;
}

.inner-arcs {
  transform-origin: 100px 100px;
  animation: rotateCounterClockwise 5.33s linear infinite;
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Bracket pulse animation */
.corner-brackets {
  animation: bracketPulse 1s ease-in-out infinite;
}

@keyframes bracketPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Tech lines pulse */
.tech-lines {
  animation: techPulse 1s ease-in-out infinite;
}

@keyframes techPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Scan lines pulse */
.scan-lines {
  animation: scanPulse 1.5s ease-in-out infinite;
}

@keyframes scanPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Ship sprite */
.ship-sprite {
  width: 160px;
  height: 160px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.5));
  z-index: 2;
  /* JS will handle rotation animation */
  transition: transform 0.1s ease-out;
}

/* Slide transition for ship changes */
.ship-display-horizontal {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 2rem;
  background: rgba(0, 20, 30, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.15);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.ship-display-horizontal.slide-out-left {
  transform: translateX(-100%);
  opacity: 0;
}

.ship-display-horizontal.slide-out-right {
  transform: translateX(100%);
  opacity: 0;
}

.ship-display-horizontal.slide-in-left {
  transform: translateX(-100%);
  opacity: 0;
}

.ship-display-horizontal.slide-in-right {
  transform: translateX(100%);
  opacity: 0;
}

/* Info panel (right side) */
.ship-info-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 200px;
}

.ship-info-name {
  font-size: 14px;
  color: var(--color-accent);
  text-shadow: var(--glow-accent);
  margin: 0;
}

.ship-info-type {
  font-size: 8px;
  color: var(--color-primary);
  margin: 0 0 0.5rem 0;
}

.ship-info-stats {
  width: 100%;
  margin-bottom: 0.75rem;
}

.ship-info-stats .stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.ship-info-stats .stat-label {
  width: 50px;
  text-align: right;
  color: var(--color-muted);
  font-size: 8px;
}

.ship-info-stats .stat-segments {
  display: flex;
  gap: 2px;
  align-items: center;
}

.ship-info-stats .stat-segment {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  object-fit: contain;
  image-rendering: pixelated;
  transition: opacity 0.2s ease;
}

.ship-info-stats .stat-segment.empty {
  opacity: 0.2;
}

.ship-info-stats .stat-segment.filled {
  opacity: 1;
}

/* Ship navigation dots - centered below the box */
.ship-dots-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.ship-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.ship-dot:hover {
  background: rgba(0, 255, 255, 0.3);
}

.ship-dot.active {
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

/* Launch button - inherits from cta-button */
.ship-launch-btn {
  display: block;
  margin: 0 auto;
  font-family: var(--font-main);
  cursor: pointer;
}

/* Responsive ship selector - horizontal */
@media (max-width: 768px) {
  .ship-selector-horizontal {
    gap: 0.75rem;
  }

  .ship-display-horizontal {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .ship-sprite-container {
    width: 200px;
    height: 200px;
  }

  .ship-sprite {
    width: 160px;
    height: 160px;
  }

  .ship-info-panel {
    min-width: 180px;
  }

  .ship-info-name {
    font-size: 12px;
  }

  .ship-nav-arrow {
    font-size: 20px;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .ship-selector-horizontal {
    gap: 0.5rem;
  }

  .ship-display-horizontal {
    padding: 1rem;
  }

  .ship-sprite-container {
    width: 160px;
    height: 160px;
  }

  .ship-sprite {
    width: 120px;
    height: 120px;
  }

  .ship-info-name {
    font-size: 11px;
  }

  .ship-info-type {
    font-size: 7px;
  }

  .ship-launch-btn {
    padding: 12px 30px;
    font-size: 10px;
  }
}

.ships-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px var(--color-primary-dim);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2), inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.ships-cta:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-shadow: var(--glow-accent);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4), inset 0 0 30px rgba(0, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Galaxy Section */
.galaxy {
  background: linear-gradient(180deg, transparent 0%, rgba(20, 0, 40, 0.3) 50%, transparent 100%);
  text-align: center;
}

.galaxy-zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 60px auto 40px;
}

.zone-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.zone-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.zone-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  border-radius: 50%;
  position: relative;
}

.zone-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.zone-icon.safe {
  background: radial-gradient(circle, rgba(0, 255, 200, 0.3) 0%, transparent 70%);
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.3);
}
.zone-icon.safe::after {
  background: var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary);
}

.zone-icon.frontier {
  background: radial-gradient(circle, rgba(255, 200, 0, 0.3) 0%, transparent 70%);
  box-shadow: 0 0 20px rgba(255, 200, 0, 0.3);
}
.zone-icon.frontier::after {
  background: var(--color-warning);
  box-shadow: 0 0 15px var(--color-warning);
}

.zone-icon.contested {
  background: radial-gradient(circle, rgba(255, 100, 0, 0.3) 0%, transparent 70%);
  box-shadow: 0 0 20px rgba(255, 100, 0, 0.3);
}
.zone-icon.contested::after {
  background: #ff6600;
  box-shadow: 0 0 15px #ff6600;
}

.zone-icon.pirate {
  background: radial-gradient(circle, rgba(255, 50, 50, 0.3) 0%, transparent 70%);
  box-shadow: 0 0 20px rgba(255, 50, 50, 0.3);
}
.zone-icon.pirate::after {
  background: var(--color-danger);
  box-shadow: 0 0 15px var(--color-danger);
}

.zone-card h4 {
  font-size: 12px;
  color: var(--color-text);
  margin-bottom: 12px;
}

.zone-card:nth-child(1) h4 { color: var(--color-primary); }
.zone-card:nth-child(2) h4 { color: var(--color-warning); }
.zone-card:nth-child(3) h4 { color: #ff6600; }
.zone-card:nth-child(4) h4 { color: var(--color-danger); }

.zone-card p {
  font-size: 10px;
  color: var(--color-muted);
  line-height: 1.9;
}

.galaxy-tagline {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.galaxy-tagline p {
  font-size: 11px;
  color: var(--color-muted);
  line-height: 2.2;
  padding: 25px 30px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
}

.galaxy-map-stack {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 380px;
  margin: 50px auto 30px;
  perspective: 1000px;
}

.map-card {
  position: absolute;
  width: 320px;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.map-card img {
  width: 100%;
  height: auto;
  border: 2px solid var(--color-card-border);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.15);
}

/* Stacked positions - fanned out like a hand of cards */
.map-card-1 {
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 3;
}

.map-card-2 {
  transform: translate(-50%, -50%) rotate(-12deg) translateX(-120px);
  z-index: 1;
}

.map-card-3 {
  transform: translate(-50%, -50%) rotate(12deg) translateX(120px);
  z-index: 2;
}

/* Click to bring card to front */
.map-card.active {
  z-index: 10;
  transform: translate(-50%, -55%) rotate(0deg) scale(1.1);
}

.map-card.active img {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 255, 255, 0.3), 0 0 80px rgba(100, 0, 200, 0.2);
  border-color: var(--color-primary);
}

.galaxy-map-caption {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 10px;
  color: var(--color-muted);
  font-style: italic;
  letter-spacing: 0.5px;
}

/* Section CTA Buttons */
.galaxy-cta,
.combat-cta,
.mining-cta,
.planets-cta,
.npcs-cta,
.spacebook-cta,
.leaderboards-cta,
.cta-section-cta,
.about-cta,
.nerdstuff-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px var(--color-primary-dim);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2), inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.galaxy-cta:hover,
.combat-cta:hover,
.mining-cta:hover,
.planets-cta:hover,
.npcs-cta:hover,
.spacebook-cta:hover,
.leaderboards-cta:hover,
.cta-section-cta:hover,
.about-cta:hover,
.nerdstuff-cta:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-shadow: var(--glow-accent);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4), inset 0 0 30px rgba(0, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  margin-left: 20px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-muted);
  border-radius: 4px;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-shadow: 0 0 10px var(--color-primary-dim);
  transform: translateY(-2px);
}

/* NPCs Section */
.npcs {
  background: linear-gradient(180deg, transparent 0%, rgba(40, 20, 0, 0.3) 50%, transparent 100%);
  text-align: center;
}

/* SpaceBook Profile Cards Grid */
.spacebook-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 60px auto 40px;
}

/* SpaceBook Profile Card - Facebook-style */
.sb-profile-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sb-profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Cover Banner */
.sb-cover {
  height: 60px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
}

.sb-cover.combat {
  background: linear-gradient(135deg, #251a1a 0%, #2e1c1c 50%, #3a2020 100%);
}

.sb-cover.economic {
  background: linear-gradient(135deg, #1a2520 0%, #1c2e24 50%, #203a2a 100%);
}

.sb-cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* Avatar Section */
.sb-avatar-wrapper {
  display: flex;
  justify-content: center;
  margin-top: -36px;
  position: relative;
  z-index: 1;
}

.sb-avatar {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  border-radius: 4px;
  border: 3px solid var(--color-card-bg);
  background: rgba(0, 20, 30, 0.8);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  aspect-ratio: 1 / 1;
}

.sb-avatar canvas {
  display: block;
  image-rendering: pixelated;
  width: 64px !important;
  height: 64px !important;
}

.sb-online-dot {
  position: absolute;
  bottom: 4px;
  right: calc(50% - 36px);
  width: 14px;
  height: 14px;
  background: #44ff44;
  border-radius: 50%;
  border: 2px solid var(--color-card-bg);
  box-shadow: 0 0 8px rgba(68, 255, 68, 0.6);
}

.sb-online-dot.away {
  background: #ffaa00;
  box-shadow: 0 0 8px rgba(255, 170, 0, 0.6);
}

.sb-profile-card.combat .sb-avatar {
  border-color: rgba(180, 100, 100, 0.5);
}

.sb-profile-card.economic .sb-avatar {
  border-color: rgba(100, 180, 120, 0.4);
}

/* Profile Info */
.sb-profile-info {
  text-align: center;
  padding: 12px 16px 8px;
}

.sb-name {
  font-size: 11px;
  color: var(--color-text);
  margin: 0 0 4px;
  font-family: 'Press Start 2P', monospace;
}

.sb-title {
  font-size: 9px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sb-profile-card.combat .sb-title {
  color: rgba(200, 120, 120, 0.9);
}

.sb-profile-card.economic .sb-title {
  color: rgba(120, 200, 140, 0.8);
}

/* Stats Row */
.sb-stats-row {
  display: flex;
  justify-content: space-around;
  padding: 12px 8px;
  border-top: 1px solid var(--color-card-border);
  border-bottom: 1px solid var(--color-card-border);
  margin: 8px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.sb-stat {
  text-align: center;
  flex: 1;
}

.sb-stat-num {
  display: block;
  font-size: 11px;
  color: var(--color-primary);
  font-family: 'Press Start 2P', monospace;
  margin-bottom: 4px;
}

.sb-stat-label {
  display: block;
  font-size: 7px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bio */
.sb-bio {
  font-size: 9px;
  color: var(--color-muted);
  line-height: 1.7;
  padding: 8px 16px;
  text-align: center;
  min-height: 48px;
}

/* Action Buttons */
.sb-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  margin-top: auto;
}

.sb-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 8px;
  font-family: 'Press Start 2P', monospace;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.sb-btn-primary {
  background: var(--color-primary);
  color: #000;
}

.sb-btn-primary:hover {
  background: #00ffff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
  transform: translateY(-1px);
}

.sb-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  border: 1px solid var(--color-card-border);
}

.sb-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-primary);
}

.sb-profile-card.combat .sb-btn-primary {
  background: rgba(180, 100, 100, 0.8);
}

.sb-profile-card.combat .sb-btn-primary:hover {
  background: rgba(200, 120, 120, 0.9);
  box-shadow: 0 0 12px rgba(180, 100, 100, 0.4);
}

.sb-profile-card.economic .sb-btn-primary {
  background: rgba(100, 180, 120, 0.8);
}

.sb-profile-card.economic .sb-btn-primary:hover {
  background: rgba(120, 200, 140, 0.9);
  box-shadow: 0 0 12px rgba(100, 180, 120, 0.4);
}

/* SpaceBook Coming Soon Toast */
.sb-toast {
  position: fixed;
  transform: translate(-50%, -100%);
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.95), rgba(0, 20, 40, 0.98));
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  padding: 10px 18px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3), 0 0 30px rgba(0, 255, 255, 0.1);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: none;
  white-space: nowrap;
}

.sb-toast-icon {
  margin-right: 8px;
}

.sb-toast.show {
  animation: sbToastPop 1.5s ease-out forwards;
}

@keyframes sbToastPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -80%) scale(0.8);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -120%) scale(1.1);
  }
  25% {
    transform: translate(-50%, -110%) scale(1);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -110%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -140%) scale(0.9);
  }
}

/* Button shake animation */
.sb-btn-shake {
  animation: sbBtnShake 0.4s ease-in-out;
}

@keyframes sbBtnShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.npc-behaviors {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
}

.behavior-item {
  display: flex;
  gap: 15px;
  align-items: baseline;
  font-size: 10px;
  text-align: left;
}

.behavior-label {
  color: var(--color-primary);
  font-weight: bold;
  min-width: 140px;
  flex-shrink: 0;
}

.behavior-item span:last-child {
  color: var(--color-muted);
  line-height: 1.6;
  text-align: left;
  flex: 1;
}

/* SpaceBook Section */
.spacebook {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 30, 60, 0.4) 50%, transparent 100%);
  text-align: center;
}

.spacebook-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 60px auto 0;
  flex-wrap: wrap;
}

/* CRT Phone Styling */
.crt-phone {
  width: 340px;
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 50%, #1a1a1a 100%);
  border-radius: 15px;
  padding: 6px;
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.8),
    inset 0 2px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

.crt-phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 15px;
  background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
  border-radius: 10px 10px 0 0;
}

.crt-phone-brand {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #888;
  letter-spacing: 3px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.crt-phone-vents {
  display: flex;
  gap: 3px;
}

.crt-phone-vents span {
  width: 20px;
  height: 2px;
  background: linear-gradient(180deg, #222 0%, #333 50%, #222 100%);
  border-radius: 1px;
}

.crt-phone-bezel {
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  padding: 12px;
  border: 2px solid #222;
  border-top: none;
  border-bottom: none;
}

.crt-phone-screen {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #000814;
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(0, 255, 255, 0.1);
}

.spacebook-widget {
  width: 100%;
  height: 450px;
  position: relative;
  z-index: 1;
}

.spacebook-widget canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Static SpaceBook Feed Styles */
.sb-feed {
  width: 100%;
  height: 450px;
  background: #000a14;
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sb-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0, 40, 60, 0.9) 0%, rgba(0, 20, 40, 0.95) 100%);
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.sb-feed-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--color-primary);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.sb-feed-location {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--color-muted);
}

.sb-feed-posts {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-feed-posts::-webkit-scrollbar {
  width: 4px;
}

.sb-feed-posts::-webkit-scrollbar-track {
  background: rgba(0, 20, 40, 0.5);
}

.sb-feed-posts::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.3);
  border-radius: 2px;
}

.sb-post {
  background: rgba(0, 30, 50, 0.6);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 6px;
  padding: 10px;
}

.sb-post-job {
  border-color: rgba(255, 200, 0, 0.3);
  background: rgba(40, 30, 0, 0.4);
}

.sb-post-news {
  border-color: rgba(255, 100, 100, 0.3);
  background: rgba(40, 10, 10, 0.4);
}

/* Wanted Alert Post */
.sb-post-wanted {
  border-color: rgba(255, 150, 0, 0.5);
  background: linear-gradient(135deg,
    rgba(60, 30, 10, 0.6) 0%,
    rgba(40, 20, 5, 0.6) 100%
  );
  position: relative;
  overflow: hidden;
}

.sb-post-wanted::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6600, #ffcc00, #ff6600);
  animation: wantedGlow 2s ease-in-out infinite;
}

@keyframes wantedGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.sb-post-wanted-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: #000;
  background: linear-gradient(135deg, #ff6600, #ff9900);
  padding: 3px 6px;
  border-radius: 2px;
  letter-spacing: 1px;
  animation: badgePulse 1.5s ease-in-out infinite;
  z-index: 2;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.sb-post-wanted .sb-post-header {
  padding-right: 70px;
}

.sb-post-wanted .sb-post-name {
  white-space: nowrap;
  overflow: visible;
  font-size: 6px;
}

.sb-avatar-wanted {
  border: 2px solid #ff9900 !important;
  box-shadow: 0 0 8px rgba(255, 150, 0, 0.4);
}

.sb-post-wanted .sb-post-content {
  display: block;
}

.sb-wanted-alert {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 150, 0, 0.3);
  border-radius: 4px;
  padding: 10px;
  margin-top: 4px;
  display: block;
}

.sb-wanted-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #ffcc00;
  margin-bottom: 6px;
  text-shadow: 0 0 8px rgba(255, 200, 0, 0.5);
}

.sb-wanted-bounty {
  font-size: 11px;
  font-weight: bold;
  color: #ff9900;
  margin-bottom: 8px;
}

.sb-wanted-crimes {
  font-size: 9px;
  color: #ccaa88;
  margin-bottom: 6px;
  font-style: italic;
  line-height: 1.4;
}

.sb-wanted-ship {
  font-size: 8px;
  color: #887766;
}

.sb-wanted-ship em {
  color: #aa9977;
}

.sb-post-report {
  background: linear-gradient(135deg, rgba(255, 100, 0, 0.3), rgba(255, 150, 0, 0.2));
  border-color: #ff9900;
  color: #ffcc00;
}

.sb-post-report:hover {
  background: linear-gradient(135deg, rgba(255, 100, 0, 0.5), rgba(255, 150, 0, 0.4));
  box-shadow: 0 0 10px rgba(255, 150, 0, 0.3);
}

.sb-post-sponsored {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: #ffcc00;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.sb-post-header {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.sb-post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: linear-gradient(135deg, #1a3a4a 0%, #0a2030 100%);
  border: 1px solid rgba(0, 255, 255, 0.3);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-post-avatar canvas {
  display: block;
  image-rendering: pixelated;
  width: 32px !important;
  height: 32px !important;
}

.sb-avatar-station {
  background: linear-gradient(135deg, #3a3a1a 0%, #2a2a0a 100%);
  border-color: rgba(255, 200, 0, 0.4);
}

.sb-avatar-station::before {
  content: "📦";
  font-size: 14px;
}

.sb-avatar-news {
  background: linear-gradient(135deg, #3a1a1a 0%, #2a0a0a 100%);
  border-color: rgba(255, 100, 100, 0.4);
}

.sb-avatar-news::before {
  content: "📰";
  font-size: 14px;
}

.sb-post-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.sb-post-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-post-time {
  font-size: 9px;
  color: var(--color-muted);
}

.sb-post-content {
  font-size: 10px;
  color: #b0c4d4;
  line-height: 1.5;
  margin-bottom: 8px;
}

.sb-post-content strong {
  color: var(--color-primary);
}

.sb-post-job .sb-post-content strong {
  color: #ffcc00;
}

.sb-post-news .sb-post-content strong {
  color: #ff6666;
}

.sb-post-stats {
  display: flex;
  gap: 12px;
  font-size: 9px;
  color: var(--color-muted);
}

.sb-post-actions {
  display: flex;
  gap: 8px;
}

.sb-post-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sb-post-accept {
  background: rgba(255, 200, 0, 0.2);
  color: #ffcc00;
  border: 1px solid rgba(255, 200, 0, 0.4);
}

.sb-post-accept:hover {
  background: rgba(255, 200, 0, 0.4);
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.3);
}

.crt-phone-glass {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
  z-index: 10;
  border-radius: 6px;
}

.crt-phone-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 11;
}

.crt-phone-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 15px;
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
  border-radius: 0 0 10px 10px;
}

.crt-phone-indicators {
  display: flex;
  gap: 12px;
  align-items: center;
}

.crt-phone-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.crt-phone-led-power {
  background: #00ff00;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.3),
    0 0 6px rgba(0, 255, 0, 0.8),
    0 0 12px rgba(0, 255, 0, 0.4);
  animation: led-glow 2s ease-in-out infinite;
}

.crt-phone-led-signal {
  background: #ffaa00;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.3),
    0 0 5px rgba(255, 170, 0, 0.6);
  animation: signal-blink 1s ease-in-out infinite;
}

/* Adjust spacebook content for CRT phone */
.crt-phone .spacebook-header {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  margin-bottom: 0;
  background: rgba(0, 20, 30, 0.8);
}

.crt-phone .spacebook-feed {
  padding: 10px;
  max-height: 460px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary-dim) rgba(0, 20, 30, 0.5);
}

/* Custom scrollbar for CRT phone */
.crt-phone .spacebook-feed::-webkit-scrollbar {
  width: 6px;
}

.crt-phone .spacebook-feed::-webkit-scrollbar-track {
  background: rgba(0, 20, 30, 0.5);
  border-radius: 3px;
}

.crt-phone .spacebook-feed::-webkit-scrollbar-thumb {
  background: var(--color-primary-dim);
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.crt-phone .spacebook-feed::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.spacebook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  margin-bottom: 10px;
}

.spacebook-logo {
  font-size: 14px;
  color: var(--color-primary);
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 10px var(--color-primary),
    0 0 20px var(--color-primary-dim);
}

.spacebook-location {
  font-size: 8px;
  color: var(--color-muted);
}

.spacebook-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow: hidden;
}

.sb-post {
  background: rgba(13, 26, 37, 0.9);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px;
}

.sb-post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sb-avatar {
  font-size: 20px;
  width: 28px;
  text-align: center;
}

.sb-author {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sb-name {
  font-size: 9px;
  color: #fff;
}

.sb-handle {
  font-size: 7px;
  color: var(--color-muted);
}

.sb-time {
  font-size: 7px;
  color: var(--color-muted);
}

.sb-content {
  font-size: 8px;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 8px;
}

.sb-reactions {
  display: flex;
  gap: 12px;
  font-size: 8px;
  color: var(--color-muted);
}

/* Sponsored Post */
.sb-sponsored {
  background: rgba(26, 37, 53, 0.9);
  border-color: rgba(68, 102, 136, 0.5);
}

.sb-sponsor-label {
  font-size: 7px;
  color: #888;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.sb-job {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-job-icon {
  font-size: 20px;
}

.sb-job-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-job-title {
  font-size: 10px;
  color: var(--color-primary);
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 10px var(--color-primary),
    0 0 20px var(--color-primary-dim);
}

.sb-job-desc {
  font-size: 7px;
  color: #888;
}

.sb-job-reward {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.sb-credits {
  font-size: 9px;
  color: var(--color-warning);
}

.sb-difficulty {
  font-size: 6px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #000;
}

.sb-difficulty.easy {
  color: #00ff88;
}

.sb-difficulty.medium {
  color: #ffaa00;
}

.sb-difficulty.hard {
  color: #ff6644;
}

/* News Post */
.sb-news {
  border-left: 2px solid #ff6644;
}

.sb-news-label {
  font-size: 7px;
  color: #ff6644;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.sb-news-headline {
  font-size: 10px;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* SpaceBook Info */
.spacebook-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 400px;
}

.spacebook-feature {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.sb-feature-icon {
  font-size: 24px;
  width: 40px;
  text-align: center;
}

.spacebook-feature h4 {
  font-size: 11px;
  color: var(--color-primary);
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 10px var(--color-primary),
    0 0 20px var(--color-primary-dim);
  margin-bottom: 8px;
}

.spacebook-feature p {
  font-size: 9px;
  color: var(--color-muted);
  line-height: 1.8;
}

/* Gameplay Section */
.gameplay {
  background: linear-gradient(180deg, transparent 0%, rgba(40, 40, 0, 0.3) 50%, transparent 100%);
}

.gameplay-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  max-width: 1000px;
  margin: 60px auto 0;
  flex-wrap: wrap;
}

.gameplay-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gameplay-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  color: var(--color-text);
}

.gameplay-icon {
  color: var(--color-primary);
  font-size: 16px;
}

.gameplay-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* About Section */
.about {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 40, 50, 0.3) 50%, transparent 100%);
  text-align: center;
}

/* Nerd Stuff Section */
.nerdstuff {
  background: linear-gradient(180deg, transparent 0%, rgba(30, 20, 40, 0.3) 50%, transparent 100%);
  text-align: center;
}

.nerdstuff-content {
  max-width: 700px;
  margin: 40px auto 0;
}

.about-content {
  max-width: 700px;
  margin: 40px auto 0;
  text-align: left;
}

.about-content > p {
  font-size: 11px;
  color: var(--color-muted);
  line-height: 2.2;
  margin-bottom: 20px;
  text-align: left;
}

.phil-portrait-large {
  margin-bottom: 50px;
  text-align: center;
}

.phil-portrait-large img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.4);
  transition: all 0.3s ease;
  image-rendering: auto;
}

.phil-portrait-large img:hover {
  box-shadow: 0 0 60px rgba(0, 255, 255, 0.6);
  transform: scale(1.05);
}

.portrait-caption {
  display: block;
  margin-top: 15px;
  font-size: 10px;
  color: var(--color-primary);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.story-image {
  margin-bottom: 40px;
  text-align: center;
}

.story-image img {
  max-width: 400px;
  width: 100%;
  border: 2px solid var(--color-card-border);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.story-image-caption {
  display: block;
  margin-top: 10px;
  font-size: 9px;
  color: var(--color-muted);
  font-style: italic;
}

/* Inline portrait and story image for About section */
.phil-portrait-inline {
  float: left;
  margin: 0 30px 20px 0;
  text-align: center;
}

.phil-portrait-inline img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
  transition: all 0.3s ease;
  image-rendering: auto;
  display: block;
}

.phil-portrait-inline img:hover {
  box-shadow: 0 0 50px rgba(0, 255, 255, 0.6);
  transform: scale(1.05);
}

.phil-portrait-inline .portrait-caption {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  color: var(--color-primary);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
}

.story-image-inline {
  float: right;
  margin: 0 0 20px 30px;
  text-align: center;
  max-width: 300px;
}

.story-image-inline img {
  width: 100%;
  border: 2px solid var(--color-card-border);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.story-image-inline img:hover {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
  transform: translateY(-2px);
}

.story-image-inline .story-image-caption {
  display: block;
  margin-top: 8px;
  font-size: 8px;
  color: var(--color-muted);
  font-style: italic;
  line-height: 1.4;
}

/* Clear floats after about content */
.about-content::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive adjustments for inline images */
@media (max-width: 768px) {
  .phil-portrait-inline,
  .story-image-inline {
    float: none;
    margin: 0 auto 30px;
    display: block;
  }

  .phil-portrait-inline {
    max-width: 150px;
  }

  .story-image-inline {
    max-width: 100%;
  }
}

.credits {
  padding: 30px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
}

.credits p {
  font-size: 10px;
  color: var(--color-muted);
  margin: 10px 0;
}

.credits .highlight {
  color: var(--color-primary);
  text-shadow: var(--glow-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a.highlight:hover {
  color: var(--color-accent);
  text-shadow: var(--glow-accent);
}

.powered-by {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--color-card-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.powered-by > span {
  font-size: 9px;
  color: var(--color-muted);
}

.tech-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tech-logo {
  height: 28px;
  width: auto;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.tech-logo.phaser-logo {
  height: 22px;
  image-rendering: pixelated;
}

.tech-logos a:hover .tech-logo {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.5));
}

.special-thanks {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-card-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.special-thanks > span {
  font-size: 9px;
  color: var(--color-muted);
}

.personal-thanks {
  margin-top: 15px;
  font-size: 9px;
  color: var(--color-primary);
  font-style: italic;
  opacity: 0.9;
}

.social-links {
  margin-top: 20px;
}

.social-link {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 10px;
  padding: 8px 16px;
  border: 1px solid var(--color-card-border);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Newsletter Section */
.newsletter {
  text-align: center;
  padding: 80px 40px;
}

.newsletter p {
  font-size: 10px;
  color: var(--color-muted);
  margin: 20px 0 40px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.newsletter-input {
  font-family: var(--font-main);
  font-size: 10px;
  padding: 15px 25px;
  background: rgba(0, 40, 50, 0.8);
  border: 1px solid var(--color-card-border);
  border-radius: 4px;
  color: var(--color-text);
  width: 300px;
  outline: none;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.newsletter-input::placeholder {
  color: var(--color-muted);
}

.newsletter-button {
  font-family: var(--font-main);
  font-size: 10px;
  padding: 15px 30px;
  background: var(--color-primary);
  border: none;
  border-radius: 4px;
  color: var(--color-bg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-button:hover {
  background: var(--color-accent);
  transform: scale(1.05);
}

/* Combat Section */
.combat {
  background: linear-gradient(180deg, transparent 0%, rgba(120, 30, 30, 0.15) 50%, transparent 100%);
  text-align: center;
}

.combat-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  max-width: 1100px;
  margin: 60px auto 0;
  flex-wrap: wrap;
}

.combat-visual {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
}

.combat-demo {
  position: relative;
  padding: 30px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
}

.enemy-ship-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.enemy-ship-img {
  width: 100px;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 15px rgba(255, 100, 100, 0.4));
  animation: shipHit 3s ease-in-out infinite;
}

@keyframes shipHit {
  0%, 85%, 100% { filter: drop-shadow(0 0 15px rgba(255, 100, 100, 0.4)); }
  90% { filter: drop-shadow(0 0 25px rgba(255, 50, 50, 0.8)) brightness(1.5); }
}

.ship-bars {
  margin-top: 15px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hull-bar-container,
.heat-bar-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hull-bar-label {
  font-size: 8px;
  color: #66ff66;
  text-shadow: 0 0 8px rgba(102, 255, 102, 0.5);
  width: 30px;
}

.heat-bar-label {
  font-size: 8px;
  color: #ff6644;
  text-shadow: 0 0 8px rgba(255, 102, 68, 0.5);
  width: 30px;
}

.hull-bar,
.heat-bar {
  flex: 1;
  height: 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 2px;
  overflow: hidden;
}

.hull-bar {
  border: 1px solid #226622;
}

.heat-bar {
  border: 1px solid #662222;
}

.hull-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #44aa44, #66ff66, #88ff88);
  box-shadow: 0 0 10px rgba(102, 255, 102, 0.6);
  animation: hullDepleteDemo 3s ease-in-out infinite;
}

.heat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #cc4422, #ff6644, #ff8866);
  box-shadow: 0 0 10px rgba(255, 102, 68, 0.6);
  animation: heatBuildDemo 3s ease-in-out infinite;
}

@keyframes hullDepleteDemo {
  0%, 10% { width: 100%; }
  90%, 100% { width: 35%; }
}

@keyframes heatBuildDemo {
  0%, 10% { width: 20%; }
  70% { width: 85%; }
  90%, 100% { width: 20%; }
}

.combat-projectiles {
  position: absolute;
  bottom: 80px;
  left: -60px;
  width: 60px;
  height: 60px;
}

.projectile {
  position: absolute;
  width: 12px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ffff00, #ffffff);
  box-shadow: 0 0 8px #ffff00, 0 0 15px rgba(255, 255, 0, 0.5);
  border-radius: 2px;
  animation: projectileFly 0.8s linear infinite;
}

.projectile.p1 {
  top: 10px;
  animation-delay: 0s;
}

.projectile.p2 {
  top: 25px;
  animation-delay: 0.3s;
}

.projectile.p3 {
  top: 40px;
  animation-delay: 0.6s;
}

@keyframes projectileFly {
  0% { left: 0; opacity: 1; }
  80% { opacity: 1; }
  100% { left: 120px; opacity: 0; }
}

.hit-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 200, 100, 0.8) 0%, rgba(255, 100, 50, 0.4) 40%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  animation: hitFlashPulse 3s ease-out infinite;
}

@keyframes hitFlashPulse {
  0%, 85% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  90% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
}

.damage-numbers {
  position: absolute;
  right: -50px;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.damage-num {
  font-size: 11px;
  font-weight: bold;
  color: #ff4444;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 10px rgba(255, 68, 68, 0.8);
  animation: damageFloat 2.5s ease-out infinite;
  opacity: 0;
}

.damage-num.delayed {
  animation-delay: 0.8s;
}

.damage-num.delayed2 {
  animation-delay: 1.6s;
}

@keyframes damageFloat {
  0% { transform: translateY(15px); opacity: 0; }
  15% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(-25px); opacity: 0; }
}

.combat-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 500px;
}

.combat-feature {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.combat-feature-icon {
  font-size: 24px;
  width: 40px;
  text-align: center;
}

.combat-feature h4 {
  font-size: 11px;
  color: #ff6644;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 10px rgba(255, 102, 68, 0.5),
    0 0 20px rgba(255, 102, 68, 0.3);
  margin-bottom: 8px;
}

.combat-feature p {
  font-size: 9px;
  color: var(--color-muted);
  line-height: 1.8;
}

.combat-tagline {
  max-width: 700px;
  margin: 50px auto 0;
  text-align: center;
}

.combat-tagline p {
  font-size: 10px;
  color: var(--color-muted);
  line-height: 2;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 25px 30px;
}

/* Mining Section */
.mining {
  background: linear-gradient(180deg, transparent 0%, rgba(80, 60, 0, 0.2) 50%, transparent 100%);
  text-align: center;
}

.mining-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  max-width: 1100px;
  margin: 60px auto 0;
  flex-wrap: wrap;
}

.mining-visual {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
}

.mining-demo {
  position: relative;
  padding: 30px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
}

.asteroid-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.asteroid-img {
  width: 120px;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 15px rgba(255, 200, 100, 0.3));
}

.ore-bar-container {
  margin-top: 15px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ore-bar-label {
  font-size: 8px;
  color: #ff9944;
  text-shadow: 0 0 8px rgba(255, 153, 68, 0.5);
}

.ore-bar {
  flex: 1;
  height: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #664422;
  border-radius: 2px;
  overflow: hidden;
}

.ore-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #cc6600, #ff9944, #ffbb66);
  box-shadow: 0 0 10px rgba(255, 153, 68, 0.6);
  transition: width 2s ease-in-out;
  animation: oreDepleteDemo 8s ease-in-out infinite;
}

@keyframes oreDepleteDemo {
  0%, 10% { width: 100%; }
  90%, 100% { width: 25%; }
}

.mining-beam {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 60px;
  background: linear-gradient(180deg, #00ffff, transparent);
  box-shadow: 0 0 15px #00ffff, 0 0 30px rgba(0, 255, 255, 0.5);
  animation: beamPulse 0.8s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes beamPulse {
  0%, 100% { opacity: 0.6; height: 60px; }
  50% { opacity: 1; height: 70px; }
}

.loot-drops {
  position: absolute;
  right: -80px;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loot-drop {
  font-size: 9px;
  color: #66ff66;
  text-shadow: 0 0 8px rgba(102, 255, 102, 0.5);
  animation: lootFloat 2s ease-out infinite;
  opacity: 0;
}

.loot-drop.delayed {
  animation-delay: 0.7s;
}

.loot-drop.delayed2 {
  animation-delay: 1.4s;
}

@keyframes lootFloat {
  0% { transform: translateY(20px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-30px); opacity: 0; }
}

.mining-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 500px;
}

.mining-feature {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.mining-feature-icon {
  font-size: 24px;
  width: 40px;
  text-align: center;
}

.mining-feature h4 {
  font-size: 11px;
  color: #ff9944;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 10px rgba(255, 153, 68, 0.5),
    0 0 20px rgba(255, 153, 68, 0.3);
  margin-bottom: 8px;
}

.mining-feature p {
  font-size: 9px;
  color: var(--color-muted);
  line-height: 1.8;
}

.mining-tagline {
  max-width: 700px;
  margin: 50px auto 0;
  text-align: center;
}

.mining-tagline p {
  font-size: 10px;
  color: var(--color-muted);
  line-height: 2;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 25px 30px;
}

/* Portrait Lab Section */
.portraits-showcase {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.portrait-demo {
  width: 100%;
  height: 100%;
  min-height: 450px;
}

.portrait-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.portrait-feature {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 20px;
}

.portrait-feature-icon {
  font-size: 28px;
  width: 45px;
  text-align: center;
  flex-shrink: 0;
}

.portrait-feature h4 {
  font-size: 11px;
  color: #ff44ff;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 10px rgba(255, 68, 255, 0.5),
    0 0 20px rgba(255, 68, 255, 0.3);
  margin-bottom: 8px;
}

.portrait-feature p {
  font-size: 9px;
  color: var(--color-muted);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .portrait-features {
    grid-template-columns: 1fr;
  }

  .portrait-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Footer */
.footer {
  background: rgba(0, 20, 30, 0.8);
  padding: 60px 40px;
  border-top: 1px solid var(--color-card-border);
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-size: 16px;
  color: var(--color-primary);
  text-shadow: var(--glow-primary);
  margin-bottom: 30px;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 8px var(--color-primary)) drop-shadow(0 0 16px var(--color-primary-dim));
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 10px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.copyright {
  font-size: 8px;
  color: var(--color-muted);
  opacity: 0.6;
}

.footer-beta-badge {
  display: inline-block;
  background: rgba(68, 34, 0, 0.9);
  border: 1px solid #ffaa00;
  color: #ffaa00;
  font-size: 10px;
  font-weight: bold;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(255, 170, 0, 0.5);
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-social-label {
  color: var(--color-muted);
  font-size: 10px;
  opacity: 0.7;
}

.footer-social a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 10px;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
}

.footer-social a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  text-shadow: var(--glow-primary);
}

/* Responsive Design */

/* Hamburger menu (all screen sizes) */
.nav-links.active {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0, 8, 12, 0.98);
  z-index: 99;
  padding: 80px 20px 40px;
  padding-left: calc(50% - 100px);
  overflow-y: auto;
}

/* Vertical line through dots */
.nav-links.active::before {
  content: '';
  position: absolute;
  left: calc(50% - 100px + 5px);
  top: 220px;
  bottom: 120px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-primary-dim) 5%, var(--color-primary-dim) 95%, transparent);
  opacity: 0.4;
}

/* Mobile menu header */
.nav-links.active .nav-menu-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  padding-left: 6px;
  border-bottom: none;
  width: 200px;
  position: relative;
}

.nav-links.active .nav-menu-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: -20px;
  height: 1px;
  background: linear-gradient(to right, var(--color-primary-dim), transparent);
  opacity: 0.5;
}

.nav-menu-title {
  font-family: var(--font-main);
  font-size: 24px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0 0 20px var(--color-primary), 0 0 40px var(--color-primary-dim);
}

.nav-menu-subtitle {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--color-primary-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-menu-logo {
  height: 36px;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 12px var(--color-primary)) drop-shadow(0 0 24px var(--color-primary-dim));
}

.nav-links.active a {
  font-size: 12px;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  padding-left: 0;
  position: relative;
}

.nav-links.active a::before {
  width: 12px;
  height: 12px;
  position: relative;
  z-index: 1;
}

.nav-links.active a:hover {
  color: var(--nav-color, var(--color-primary));
  text-shadow: 0 0 8px var(--nav-color, var(--color-primary));
}

.nav-links.active a:hover::before {
  opacity: 1;
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--nav-color, var(--color-primary)), 0 0 16px var(--nav-color, var(--color-primary));
}

.nav-links .nav-play {
  margin-top: 20px;
  margin-left: -6px;
}

.nav-links .nav-play::before {
  display: none;
}

.nav-links.active .nav-play {
  align-self: center;
  margin-left: -100px;
  padding: 12px 32px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .nav {
    padding: 15px 20px;
  }

  .nav-logo {
    font-size: 12px;
  }

  .nav-play-persistent {
    padding: 6px 12px;
    font-size: 9px;
    margin-right: 10px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-logo {
    height: 56px;
  }

  .nav-logo-img {
    height: 20px;
  }

  .hero-tagline {
    font-size: 12px;
  }

  .hero-content {
    margin-top: 0;
  }

  .hero-description {
    margin: 0 auto 20px;
    font-size: 10px;
  }

  .hero-description .tagline {
    font-size: 10px;
  }

  .hero-ctas {
    margin-top: 20px;
  }

  .hero-ctas .cta-button {
    padding: 12px 24px;
    font-size: 10px;
  }

  .hero-planetscape {
    align-items: flex-start;
  }

  .hero-planet {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-bottom: 30px;
  }

  .planet-img {
    width: 150px;
    height: 150px;
  }

  section {
    padding: 60px 20px;
  }

  .features-grid,
  .ships-grid,
  .galaxy-zones,
  .spacebook-profiles-grid {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }

  .spacebook-profiles-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .galaxy-map-stack {
    height: 300px;
    max-width: 100%;
    margin: 30px auto 20px;
  }

  .map-card {
    width: 240px;
  }

  .map-card-2 {
    transform: translate(-50%, -50%) rotate(-8deg) translateX(-70px);
  }

  .map-card-3 {
    transform: translate(-50%, -50%) rotate(8deg) translateX(70px);
  }

  .sb-name {
    font-size: 9px;
  }

  .sb-stat-num {
    font-size: 9px;
  }

  .sb-btn {
    font-size: 7px;
    padding: 6px 8px;
  }

  .section-title {
    font-size: 18px;
  }

  .gameplay-content {
    flex-direction: column;
    gap: 40px;
  }

  .newsletter-input {
    width: 100%;
    max-width: 300px;
  }

  .spacebook-container {
    flex-direction: column;
    gap: 40px;
  }

  .crt-phone {
    width: 300px;
  }

  .crt-phone .spacebook-feed {
    max-height: 420px;
  }

  .spacebook-info {
    text-align: center;
  }

  .spacebook-feature {
    flex-direction: column;
    align-items: center;
  }

  .combat-content {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .combat-visual {
    flex: 0 0 auto;
  }

  .damage-numbers {
    right: -40px;
  }

  .combat-projectiles {
    left: -40px;
  }

  .combat-features {
    text-align: center;
    padding: 0 10px;
  }

  .combat-feature {
    flex-direction: column;
    align-items: center;
  }

  .combat-tagline p {
    padding: 20px;
    font-size: 9px;
  }

  .mining-content {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .mining-visual {
    flex: 0 0 auto;
  }

  .loot-drops {
    right: -60px;
  }

  .mining-features {
    text-align: center;
    padding: 0 10px;
  }

  .mining-feature {
    flex-direction: column;
    align-items: center;
  }

  .mining-tagline p {
    padding: 20px;
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 20px;
  }

  .hero-logo {
    height: 40px;
  }

  .footer-logo-img {
    height: 24px;
  }

  .cta-button {
    padding: 15px 30px;
    font-size: 12px;
  }

  .feature-card,
  .ship-card {
    padding: 25px 20px;
  }

  .crt-phone {
    width: 280px;
  }

  .crt-phone-brand {
    font-size: 7px;
    letter-spacing: 2px;
  }

  .crt-phone-bezel {
    padding: 8px;
  }

  .crt-phone .spacebook-feed {
    max-height: 380px;
  }
}

/* ========================================
   Planets Showcase Section
   ======================================== */

.planets-showcase {
  padding: 80px 20px;
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg,
    rgba(0, 10, 20, 0.9) 0%,
    rgba(0, 20, 40, 0.95) 50%,
    rgba(0, 10, 20, 0.9) 100%
  );
  text-align: center;
}

.planets-showcase .section-title {
  text-align: center;
  margin-bottom: 10px;
}

.planets-showcase .section-subtitle {
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-muted);
  font-size: 12px;
}

/* Planetscape Demo Container */
.planetscape-demo {
  width: 100%;
  max-width: 800px;
  height: 450px;
  margin: 0 auto;
  border: 2px solid var(--color-card-border);
  border-radius: 8px;
  overflow: hidden;
  background: #000814;
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.1),
    inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.planetscape-demo canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Demo Controls */
.demo-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.demo-btn {
  font-family: var(--font-main);
  font-size: 10px;
  padding: 12px 20px;
  background: rgba(0, 40, 60, 0.8);
  border: 1px solid var(--color-primary-dim);
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.demo-btn:hover {
  background: rgba(0, 80, 100, 0.9);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  transform: translateY(-2px);
}

.demo-btn:active {
  transform: translateY(0);
  background: rgba(0, 100, 120, 0.9);
}

/* Responsive adjustments for planetscape demo */
@media (max-width: 850px) {
  .planetscape-demo {
    max-width: 100%;
    height: 350px;
  }
}

@media (max-width: 600px) {
  .planetscape-demo {
    height: 280px;
  }

  .demo-btn {
    font-size: 8px;
    padding: 10px 15px;
  }

  .demo-controls {
    gap: 10px;
  }
}

/* ========================================
   CRT Monitor Frame
   ======================================== */

.crt-monitor {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 50%, #1a1a1a 100%);
  border-radius: 20px;
  padding: 8px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    inset 0 2px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

.crt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
  border-radius: 12px 12px 0 0;
}

.crt-brand {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #888;
  letter-spacing: 4px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.crt-vents {
  display: flex;
  gap: 4px;
}

.crt-vents span {
  width: 30px;
  height: 3px;
  background: linear-gradient(180deg, #222 0%, #333 50%, #222 100%);
  border-radius: 1px;
}

.crt-bezel {
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  padding: 20px;
  border: 3px solid #222;
  border-top: none;
}

.crt-screen {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    inset 0 0 100px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 255, 255, 0.1);
}

.crt-glass {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
  z-index: 10;
  border-radius: 8px;
}

.crt-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 11;
}

.crt-flicker {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 255, 255, 0.02);
  pointer-events: none;
  z-index: 12;
  animation: crt-flicker 0.1s infinite;
}

@keyframes crt-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.97; }
}

.crt-screen .planetscape-demo {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: none;
  border: none;
}

/* Planetscape GIF slideshow */
.crt-screen .planetscape-demo-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  image-rendering: pixelated;
}

/* Recording indicator */
.crt-rec-indicator {
  position: absolute;
  top: 15px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 15;
  pointer-events: none;
}

.rec-dot {
  width: 10px;
  height: 10px;
  background: #ff0000;
  border-radius: 50%;
  box-shadow:
    0 0 6px rgba(255, 0, 0, 0.8),
    0 0 12px rgba(255, 0, 0, 0.5),
    0 0 20px rgba(255, 0, 0, 0.3);
  animation: rec-blink 1.5s ease-in-out infinite;
}

@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.rec-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #ff0000;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
  letter-spacing: 1px;
}

.crt-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
  border-radius: 0 0 12px 12px;
}

.crt-controls {
  display: flex;
  gap: 10px;
}

.crt-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 10px 15px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #00ffff;
  border: 2px solid #444;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
}

.crt-btn:hover {
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
  border-color: #00ffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(0, 255, 255, 0.3);
}

.crt-btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.5);
}

.crt-indicators {
  display: flex;
  gap: 15px;
  align-items: center;
}

.crt-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.crt-led-power {
  background: #00ff00;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.3),
    0 0 8px rgba(0, 255, 0, 0.8),
    0 0 15px rgba(0, 255, 0, 0.4);
  animation: led-glow 2s ease-in-out infinite;
}

.crt-led-signal {
  background: #ffaa00;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.3),
    0 0 6px rgba(255, 170, 0, 0.6);
  animation: signal-blink 1s ease-in-out infinite;
}

@keyframes led-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes signal-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Channel switching effects */
.crt-static-burst {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.05s ease;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      rgba(0, 0, 0, 0.3) 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.03) 0px,
      rgba(0, 255, 0, 0.03) 1px,
      rgba(0, 0, 255, 0.03) 2px
    );
}

.crt-static-burst.active {
  opacity: 1;
  animation: static-noise 0.15s steps(3) infinite;
}

@keyframes static-noise {
  0% {
    background-position: 0 0, 0 0;
    filter: brightness(0.8) contrast(1.5);
  }
  25% {
    background-position: -2px 1px, 1px -1px;
    filter: brightness(1.2) contrast(1.2);
  }
  50% {
    background-position: 1px -2px, -1px 2px;
    filter: brightness(0.6) contrast(1.8);
  }
  75% {
    background-position: 2px 2px, -2px 0px;
    filter: brightness(1.4) contrast(1.1);
  }
  100% {
    background-position: -1px 0px, 0px 1px;
    filter: brightness(0.9) contrast(1.4);
  }
}

.crt-static-burst.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: overlay;
  animation: noise-shift 0.1s steps(2) infinite;
}

@keyframes noise-shift {
  0% { transform: translate(0, 0) scale(1.5); }
  50% { transform: translate(-5%, -5%) scale(1.6); }
  100% { transform: translate(5%, 5%) scale(1.4); }
}

.crt-screen-tear {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  pointer-events: none;
  opacity: 0;
}

.crt-screen-tear.active {
  opacity: 1;
  animation: screen-tear 0.2s steps(1) forwards;
}

@keyframes screen-tear {
  0% {
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 30%);
    transform: translateX(0);
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  }
  20% {
    clip-path: polygon(0 25%, 100% 25%, 100% 45%, 0 45%);
    transform: translateX(10px);
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.15), transparent);
  }
  40% {
    clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%);
    transform: translateX(-8px);
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
  }
  60% {
    clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%);
    transform: translateX(5px);
    background: linear-gradient(90deg, transparent, rgba(0, 0, 255, 0.15), transparent);
  }
  80% {
    clip-path: polygon(0 70%, 100% 70%, 100% 90%, 0 90%);
    transform: translateX(-3px);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 0, 0.1), transparent);
  }
  100% {
    clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    transform: translateX(0);
  }
}

/* Brief blackout flash */
.crt-screen-tear.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  animation: blackout-flash 0.2s ease-out forwards;
}

@keyframes blackout-flash {
  0% { opacity: 0.9; }
  30% { opacity: 0.7; }
  60% { opacity: 0.3; }
  100% { opacity: 0; }
}

/* CRT Monitor Responsive */
@media (max-width: 850px) {
  .crt-monitor {
    border-radius: 15px;
    margin: 0 10px;
  }

  .crt-bezel {
    padding: 15px;
  }

  .crt-screen .planetscape-demo {
    height: 350px;
  }
}

@media (max-width: 600px) {
  .crt-monitor {
    border-radius: 10px;
  }

  .crt-top {
    padding: 6px 15px;
  }

  .crt-brand {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .crt-vents span {
    width: 20px;
  }

  .crt-bezel {
    padding: 10px;
  }

  .crt-screen .planetscape-demo {
    height: 280px;
  }

  .crt-bottom {
    flex-direction: column;
    gap: 15px;
    padding: 12px 15px;
  }

  .crt-controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .crt-btn {
    font-size: 7px;
    padding: 8px 12px;
  }
}

/* ========================================
   Final CTA Section
   ======================================== */

.final-cta {
  padding: 100px 40px;
  text-align: center;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(0, 60, 80, 0.3) 30%,
    rgba(0, 100, 120, 0.2) 50%,
    rgba(0, 60, 80, 0.3) 70%,
    transparent 100%
  );
}

.final-cta .section-title {
  margin-bottom: 20px;
}

.cta-tagline {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 40px;
}

.cta-large {
  padding: 20px 50px;
  font-size: 14px;
}

.cta-large:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 30px rgba(0, 255, 255, 0.5),
    0 0 60px rgba(0, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .final-cta {
    padding: 60px 20px;
  }

  .cta-large {
    padding: 15px 35px;
    font-size: 12px;
  }
}

/* ========================================
   FAQ CTA Section
   ======================================== */

.faq-cta-section {
  padding: 60px 40px;
  text-align: center;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(0, 40, 50, 0.2) 50%,
    transparent 100%
  );
}

.faq-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.faq-cta-title {
  font-size: 18px;
  color: var(--color-primary);
  text-shadow: var(--glow-primary);
  margin-bottom: 15px;
}

.faq-cta-text {
  font-size: 10px;
  color: var(--color-muted);
  line-height: 2;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .faq-cta-section {
    padding: 40px 20px;
  }

  .faq-cta-title {
    font-size: 14px;
  }

  .faq-cta-text {
    font-size: 9px;
  }
}

/* ========================================
   Most Wanted - Wanted Poster Leaderboards
   ======================================== */

.leaderboards.wanted-section {
  padding: 80px 40px;
  background: linear-gradient(180deg,
    rgba(20, 10, 5, 0.9) 0%,
    rgba(40, 25, 15, 0.8) 50%,
    rgba(20, 10, 5, 0.9) 100%
  );
  position: relative;
  text-align: center;
}

/* Wanted poster title */
.wanted-title {
  font-size: 36px !important;
  color: #ffcc00 !important;
  text-shadow:
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000,
    0 0 20px rgba(255, 100, 0, 0.5),
    0 0 40px rgba(255, 50, 0, 0.3) !important;
  letter-spacing: 6px;
  margin-bottom: 10px !important;
  animation: wantedPulse 2s ease-in-out infinite;
}

@keyframes wantedPulse {
  0%, 100% {
    text-shadow:
      -2px -2px 0 #000,
      2px -2px 0 #000,
      -2px 2px 0 #000,
      2px 2px 0 #000,
      0 0 20px rgba(255, 100, 0, 0.5),
      0 0 40px rgba(255, 50, 0, 0.3);
  }
  50% {
    text-shadow:
      -2px -2px 0 #000,
      2px -2px 0 #000,
      -2px 2px 0 #000,
      2px 2px 0 #000,
      0 0 30px rgba(255, 100, 0, 0.7),
      0 0 60px rgba(255, 50, 0, 0.5);
  }
}

.wanted-section .section-subtitle {
  text-align: center;
  color: #aa8866;
  font-size: 10px;
  margin-bottom: 40px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Tab Navigation - Wanted poster style */
.leaderboard-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.lb-tab {
  font-family: var(--font-main);
  font-size: 9px;
  padding: 12px 20px;
  background: rgba(60, 40, 20, 0.6);
  border: 2px solid #664422;
  color: #aa8866;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lb-tab:hover {
  background: rgba(80, 50, 25, 0.8);
  border-color: #885533;
  color: #ddaa77;
}

.lb-tab.active {
  background: rgba(100, 60, 30, 0.8);
  border-color: #ffcc00;
  color: #ffcc00;
  box-shadow: 0 0 15px rgba(255, 150, 0, 0.3);
}

/* Leaderboard Container - Wanted poster board */
.leaderboard-container {
  max-width: 800px;
  margin: 0 auto;
}

.leaderboard-board {
  display: none;
  background: linear-gradient(180deg,
    rgba(45, 35, 25, 0.95) 0%,
    rgba(35, 25, 15, 0.95) 100%
  );
  border: 3px solid #553311;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    inset 0 0 50px rgba(0, 0, 0, 0.5),
    0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Aged paper texture overlay */
.leaderboard-board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23000" fill-opacity="0.03" width="1" height="1" x="20" y="30"/><rect fill="%23000" fill-opacity="0.02" width="1" height="1" x="50" y="70"/><rect fill="%23000" fill-opacity="0.04" width="1" height="1" x="80" y="20"/><rect fill="%23000" fill-opacity="0.02" width="1" height="1" x="10" y="80"/><rect fill="%23000" fill-opacity="0.03" width="1" height="1" x="60" y="40"/></svg>');
  pointer-events: none;
  opacity: 0.5;
}

.leaderboard-board.active {
  display: block;
  animation: posterSlam 0.3s ease;
}

@keyframes posterSlam {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

/* Header Row - Wanted poster style */
.lb-header {
  display: grid;
  grid-template-columns: 40px 40px 1fr 1fr 100px;
  gap: 10px;
  padding: 15px 20px;
  background: rgba(80, 50, 25, 0.5);
  border-bottom: 2px solid #664422;
  font-size: 8px;
  color: #ffcc00;
  text-transform: uppercase;
  letter-spacing: 2px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.lb-portrait-header {
  /* Empty header space for portrait column */
}

/* Entry Rows - Individual bounty cards */
.lb-entry {
  display: grid;
  grid-template-columns: 40px 40px 1fr 1fr 100px;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(100, 70, 40, 0.5);
  font-size: 10px;
  color: #ccaa88;
  transition: all 0.2s ease;
  align-items: center;
  position: relative;
  z-index: 1;
}

.lb-entry:hover {
  background: rgba(100, 70, 40, 0.3);
}

/* Portrait in leaderboard - Mugshot style */
.lb-portrait {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 2px;
  border: 2px solid #553322;
  background: rgba(20, 15, 10, 0.8);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.lb-portrait canvas {
  display: block;
  image-rendering: pixelated;
  width: 32px !important;
  height: 32px !important;
}

/* Top 3 bounty styling */
.lb-entry.gold {
  background: linear-gradient(90deg, rgba(255, 200, 0, 0.15) 0%, transparent 60%);
}

.lb-entry.gold .lb-portrait {
  border-color: #ffcc00;
  box-shadow:
    0 0 10px rgba(255, 200, 0, 0.4),
    inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.lb-entry.gold .lb-rank {
  color: #ffcc00;
  text-shadow: 0 0 10px rgba(255, 200, 0, 0.5);
}

.lb-entry.silver {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, transparent 60%);
}

.lb-entry.silver .lb-portrait {
  border-color: #aaaaaa;
  box-shadow:
    0 0 8px rgba(192, 192, 192, 0.3),
    inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.lb-entry.silver .lb-rank {
  color: #cccccc;
  text-shadow: 0 0 8px rgba(192, 192, 192, 0.4);
}

.lb-entry.bronze {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, transparent 60%);
}

.lb-entry.bronze .lb-portrait {
  border-color: #aa7744;
  box-shadow:
    0 0 8px rgba(205, 127, 50, 0.3),
    inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.lb-entry.bronze .lb-rank {
  color: #cc8855;
  text-shadow: 0 0 8px rgba(205, 127, 50, 0.4);
}

/* Column Styling - Wanted poster */
.lb-rank {
  font-weight: bold;
  color: #886644;
  font-size: 12px;
}

.lb-player {
  color: #ffddaa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: bold;
}

.lb-ship {
  color: #887755;
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: italic;
}

.lb-stat {
  text-align: right;
  color: #ffcc00;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(255, 200, 0, 0.3);
}

/* Disclaimer - GSB official notice */
.leaderboard-disclaimer {
  text-align: center;
  margin-top: 25px;
  font-size: 8px;
  color: #886655;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Responsive - Wanted poster */
@media (max-width: 768px) {
  .leaderboards.wanted-section {
    padding: 60px 20px;
  }

  .wanted-title {
    font-size: 24px !important;
    letter-spacing: 3px;
  }

  .leaderboard-tabs {
    gap: 6px;
  }

  .lb-tab {
    font-size: 7px;
    padding: 8px 12px;
  }

  .lb-header,
  .lb-entry {
    grid-template-columns: 28px 32px 1fr 65px;
    padding: 8px 12px;
    font-size: 8px;
    gap: 6px;
  }

  .lb-header .lb-ship,
  .lb-entry .lb-ship {
    display: none;
  }

  .lb-portrait {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }

  .lb-portrait canvas {
    width: 24px !important;
    height: 24px !important;
  }

  .lb-player {
    font-size: 8px;
  }

  .lb-stat {
    font-size: 8px;
  }

  .lb-rank {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .wanted-title {
    font-size: 18px !important;
    letter-spacing: 2px;
  }

  .lb-tab {
    font-size: 6px;
    padding: 6px 8px;
  }

  .lb-header,
  .lb-entry {
    grid-template-columns: 22px 26px 1fr 55px;
    gap: 4px;
    padding: 6px 8px;
    font-size: 7px;
  }

  .lb-portrait {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border-width: 1px;
  }

  .lb-portrait canvas {
    width: 20px !important;
    height: 20px !important;
  }

  .lb-rank {
    font-size: 9px;
  }
}

/* ========================================
   Featured Wanted Poster Cards
   ======================================== */

.wanted-featured-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.wanted-card {
  width: 260px;
  background: linear-gradient(180deg,
    rgba(60, 45, 30, 0.95) 0%,
    rgba(45, 30, 18, 0.98) 50%,
    rgba(35, 22, 12, 0.95) 100%
  );
  border: 3px solid #664422;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.6),
    inset 0 0 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Aged paper texture */
.wanted-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23000" fill-opacity="0.05" width="2" height="2" x="10" y="20"/><rect fill="%23fff" fill-opacity="0.02" width="1" height="1" x="50" y="60"/><rect fill="%23000" fill-opacity="0.04" width="2" height="2" x="80" y="30"/></svg>');
  pointer-events: none;
  opacity: 0.6;
}

.wanted-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.7),
    inset 0 0 30px rgba(0, 0, 0, 0.4);
}

/* Card update animation */
.wanted-card.updating {
  animation: cardFlash 0.4s ease;
}

@keyframes cardFlash {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1); }
}

/* Card Header */
.wanted-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: rgba(80, 50, 25, 0.6);
  border-bottom: 2px solid #553311;
  position: relative;
  z-index: 1;
}

.wanted-rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  background: #553322;
  color: #aa8866;
  border: 2px solid #664433;
}

.wanted-reward-label {
  font-size: 8px;
  letter-spacing: 3px;
  color: #aa8866;
  text-transform: uppercase;
}

/* Gold card styling */
.wanted-card.gold {
  border-color: #ffcc00;
  box-shadow:
    0 8px 25px rgba(255, 200, 0, 0.3),
    inset 0 0 30px rgba(0, 0, 0, 0.4);
}

.wanted-card.gold .wanted-rank-badge {
  background: linear-gradient(135deg, #ffcc00 0%, #ff9900 100%);
  color: #000;
  border-color: #ffdd44;
  box-shadow: 0 0 15px rgba(255, 200, 0, 0.5);
}

.wanted-card.gold .wanted-reward-label {
  color: #ffcc00;
}

.wanted-card.gold:hover {
  box-shadow:
    0 15px 40px rgba(255, 200, 0, 0.4),
    inset 0 0 30px rgba(0, 0, 0, 0.4);
}

/* Silver card styling */
.wanted-card.silver {
  border-color: #aaaaaa;
  box-shadow:
    0 8px 25px rgba(192, 192, 192, 0.2),
    inset 0 0 30px rgba(0, 0, 0, 0.4);
}

.wanted-card.silver .wanted-rank-badge {
  background: linear-gradient(135deg, #cccccc 0%, #999999 100%);
  color: #222;
  border-color: #dddddd;
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
}

.wanted-card.silver .wanted-reward-label {
  color: #cccccc;
}

/* Bronze card styling */
.wanted-card.bronze {
  border-color: #aa7744;
  box-shadow:
    0 8px 25px rgba(205, 127, 50, 0.2),
    inset 0 0 30px rgba(0, 0, 0, 0.4);
}

.wanted-card.bronze .wanted-rank-badge {
  background: linear-gradient(135deg, #cc8844 0%, #996633 100%);
  color: #000;
  border-color: #bb7744;
  box-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
}

.wanted-card.bronze .wanted-reward-label {
  color: #cc8844;
}

/* Mugshot Section */
.wanted-card-mugshot {
  display: flex;
  justify-content: center;
  padding: 20px 15px 15px;
  position: relative;
  z-index: 1;
}

.wanted-avatar {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  border: 3px solid #553322;
  background: rgba(20, 15, 10, 0.9);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.6),
    0 4px 10px rgba(0, 0, 0, 0.5);
}

.wanted-card.gold .wanted-avatar {
  border-color: #ffcc00;
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(255, 200, 0, 0.3);
}

.wanted-card.silver .wanted-avatar {
  border-color: #aaaaaa;
}

.wanted-card.bronze .wanted-avatar {
  border-color: #aa7744;
}

.wanted-avatar canvas {
  display: block;
  image-rendering: pixelated;
  width: 64px !important;
  height: 64px !important;
}

/* Card Info */
.wanted-card-info {
  text-align: center;
  padding: 0 15px 15px;
  position: relative;
  z-index: 1;
}

.wanted-name {
  font-size: 14px;
  color: #ffddaa;
  margin: 0 0 5px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  word-break: break-word;
}

.wanted-alias {
  font-size: 9px;
  color: #887755;
  font-style: italic;
}

/* Stats Row */
.wanted-card-stats {
  display: flex;
  justify-content: center;
  padding: 12px 15px;
  background: rgba(40, 25, 15, 0.5);
  border-top: 1px solid rgba(100, 70, 40, 0.4);
  border-bottom: 1px solid rgba(100, 70, 40, 0.4);
  position: relative;
  z-index: 1;
}

.wanted-stat {
  text-align: center;
}

.wanted-stat-value {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #ffcc00;
  text-shadow: 0 0 8px rgba(255, 200, 0, 0.4);
}

.wanted-stat-label {
  display: block;
  font-size: 8px;
  color: #aa8866;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3px;
}

/* Crimes/Description */
.wanted-card-crimes {
  padding: 12px 15px;
  font-size: 9px;
  color: #aa9977;
  text-align: center;
  line-height: 1.5;
  font-style: italic;
  position: relative;
  z-index: 1;
  min-height: 50px;
}

/* Card Footer */
.wanted-card-footer {
  display: flex;
  justify-content: center;
  padding: 10px 15px;
  background: rgba(60, 40, 20, 0.5);
  border-top: 1px solid rgba(100, 70, 40, 0.4);
  position: relative;
  z-index: 1;
}

.wanted-status {
  font-size: 8px;
  letter-spacing: 3px;
  color: #ff6644;
  text-transform: uppercase;
  animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Responsive - Featured Cards */
@media (max-width: 900px) {
  .wanted-featured-cards {
    gap: 15px;
  }

  .wanted-card {
    width: 220px;
  }

  .wanted-avatar {
    width: 64px;
    height: 64px;
  }

  .wanted-avatar canvas {
    width: 56px !important;
    height: 56px !important;
  }

  .wanted-name {
    font-size: 12px;
  }

  .wanted-stat-value {
    font-size: 14px;
  }
}

@media (max-width: 720px) {
  .wanted-featured-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .wanted-card {
    width: 280px;
  }
}

@media (max-width: 480px) {
  .wanted-card {
    width: 100%;
    max-width: 280px;
  }

  .wanted-avatar {
    width: 56px;
    height: 56px;
  }

  .wanted-avatar canvas {
    width: 48px !important;
    height: 48px !important;
  }

  .wanted-name {
    font-size: 11px;
  }

  .wanted-card-crimes {
    font-size: 8px;
    min-height: 40px;
  }
}

/* Star Map Navigation - Entity Color Variables (matching in-game MapOverlay) */
:root {
  --map-color-cyan: #00ffff;      /* Primary/friendly */
  --map-color-cyan-dim: #00aaaa;
  --map-color-green: #00ff88;     /* Stations/Planets */
  --map-color-green-dim: #008844;
  --map-color-red: #ff4444;       /* Hostile/Danger */
  --map-color-red-dim: #882222;
  --map-color-yellow: #ffcc44;    /* Neutral */
  --map-color-yellow-dim: #886622;
  --map-color-gray: #aaaaaa;      /* Rocks */
  --map-color-gray-dim: #555555;
  --map-color-blue: #4488ff;      /* Station variant */
  --map-color-blue-dim: #224488;
  --map-color-orange: #ffaa00;    /* POI/Quest */
  --map-color-orange-dim: #885500;
}

.starmap-nav {
  position: fixed;
  right: 24px;
  top: 0;
  bottom: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 20px 0;
}

.starmap-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Vertical connection line */
.starmap-line {
  position: absolute;
  right: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-primary-dim) 10%,
    var(--color-primary-dim) 90%,
    transparent
  );
  opacity: 0.5;
}

/* Individual waypoint */
.starmap-point {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* Star dot */
.starmap-star {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.4;
  box-shadow:
    0 0 4px var(--color-primary),
    0 0 8px var(--color-primary-dim);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* Label */
.starmap-label {
  font-family: var(--font-main);
  font-size: 8px;
  color: var(--color-primary-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Hover state */
.starmap-point:hover .starmap-star {
  opacity: 0.8;
  box-shadow:
    0 0 6px var(--color-primary),
    0 0 12px var(--color-primary),
    0 0 20px var(--color-primary-dim);
}

.starmap-point:hover .starmap-label {
  opacity: 1;
  color: var(--color-primary);
  text-shadow: 0 0 8px var(--color-primary);
}

/* Active state */
.starmap-point.active .starmap-star {
  width: 14px;
  height: 14px;
  opacity: 1;
  animation: starmap-pulse 2s ease-in-out infinite;
  box-shadow:
    0 0 8px var(--color-primary),
    0 0 16px var(--color-primary),
    0 0 24px var(--color-primary-dim),
    0 0 32px rgba(0, 255, 255, 0.3);
}

.starmap-point.active .starmap-label {
  opacity: 1;
  color: var(--color-primary);
  text-shadow: 0 0 8px var(--color-primary);
}

@keyframes starmap-pulse {
  0%, 100% {
    box-shadow:
      0 0 8px var(--star-color, var(--color-primary)),
      0 0 16px var(--star-color, var(--color-primary)),
      0 0 24px var(--star-color-dim, var(--color-primary-dim)),
      0 0 32px var(--star-glow, rgba(0, 255, 255, 0.3));
  }
  50% {
    box-shadow:
      0 0 12px var(--star-color, var(--color-primary)),
      0 0 24px var(--star-color, var(--color-primary)),
      0 0 36px var(--star-color-dim, var(--color-primary-dim)),
      0 0 48px var(--star-glow, rgba(0, 255, 255, 0.4));
  }
}

/* Section-specific star colors (matching in-game MapOverlay) */
.starmap-point[data-color="cyan"] {
  --star-color: var(--map-color-cyan);
  --star-color-dim: var(--map-color-cyan-dim);
  --star-glow: rgba(0, 255, 255, 0.3);
}
.starmap-point[data-color="green"] {
  --star-color: var(--map-color-green);
  --star-color-dim: var(--map-color-green-dim);
  --star-glow: rgba(0, 255, 136, 0.3);
}
.starmap-point[data-color="red"] {
  --star-color: var(--map-color-red);
  --star-color-dim: var(--map-color-red-dim);
  --star-glow: rgba(255, 68, 68, 0.3);
}
.starmap-point[data-color="yellow"] {
  --star-color: var(--map-color-yellow);
  --star-color-dim: var(--map-color-yellow-dim);
  --star-glow: rgba(255, 204, 68, 0.3);
}
.starmap-point[data-color="gray"] {
  --star-color: var(--map-color-gray);
  --star-color-dim: var(--map-color-gray-dim);
  --star-glow: rgba(170, 170, 170, 0.3);
}
.starmap-point[data-color="blue"] {
  --star-color: var(--map-color-blue);
  --star-color-dim: var(--map-color-blue-dim);
  --star-glow: rgba(68, 136, 255, 0.3);
}
.starmap-point[data-color="orange"] {
  --star-color: var(--map-color-orange);
  --star-color-dim: var(--map-color-orange-dim);
  --star-glow: rgba(255, 170, 0, 0.3);
}

/* Apply colors to stars */
.starmap-point .starmap-star {
  background: var(--star-color, var(--color-primary));
  box-shadow:
    0 0 4px var(--star-color, var(--color-primary)),
    0 0 8px var(--star-color-dim, var(--color-primary-dim));
}

.starmap-point:hover .starmap-star {
  box-shadow:
    0 0 6px var(--star-color, var(--color-primary)),
    0 0 12px var(--star-color, var(--color-primary)),
    0 0 20px var(--star-color-dim, var(--color-primary-dim));
}

.starmap-point:hover .starmap-label {
  color: var(--star-color, var(--color-primary));
  text-shadow: 0 0 8px var(--star-color, var(--color-primary));
}

.starmap-point.active .starmap-star {
  box-shadow:
    0 0 8px var(--star-color, var(--color-primary)),
    0 0 16px var(--star-color, var(--color-primary)),
    0 0 24px var(--star-color-dim, var(--color-primary-dim)),
    0 0 32px var(--star-glow, rgba(0, 255, 255, 0.3));
}

.starmap-point.active .starmap-label {
  color: var(--star-color, var(--color-primary));
  text-shadow: 0 0 8px var(--star-color, var(--color-primary));
}

/* Target Display - shows for active section */
.starmap-target {
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.starmap-point.active .starmap-target {
  opacity: 1;
}

/* Corner brackets */
.starmap-target::before,
.starmap-target::after,
.target-corner-bl,
.target-corner-br {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-color: var(--star-color, var(--color-primary));
  border-style: solid;
  border-width: 0;
}

.starmap-target::before {
  top: 0;
  left: 0;
  border-top-width: 2px;
  border-left-width: 2px;
}

.starmap-target::after {
  top: 0;
  right: 0;
  border-top-width: 2px;
  border-right-width: 2px;
}

.target-corner-bl {
  bottom: 0;
  left: 0;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.target-corner-br {
  bottom: 0;
  right: 0;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

/* Rotating arc around target */
.target-arc {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--star-color-dim, var(--color-primary-dim));
  border-right-color: var(--star-color-dim, var(--color-primary-dim));
  animation: target-rotate 3s linear infinite;
  opacity: 0.6;
}

.target-arc-inner {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-bottom-color: var(--star-color, var(--color-primary));
  border-left-color: var(--star-color, var(--color-primary));
  animation: target-rotate-reverse 2s linear infinite;
  opacity: 0.4;
}

@keyframes target-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes target-rotate-reverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Center diamond reticle */
.target-diamond {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid var(--star-color, var(--color-primary));
  animation: target-diamond-pulse 1s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes target-diamond-pulse {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg) scale(1.15);
  }
}

/* Scan line effect on active target */
.target-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--star-color, var(--color-primary)),
    transparent
  );
  animation: target-scan 2s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes target-scan {
  0% { top: 0; opacity: 0.5; }
  50% { opacity: 0.8; }
  100% { top: calc(100% - 2px); opacity: 0.5; }
}

/* Hide on mobile */
@media (max-width: 1024px) {
  .starmap-nav {
    display: none;
  }
}
