/* ==========================================================================
   STAACOR NEWS // MOBILE-FIRST THEME & DESIGN SYSTEM (staacornews.com)
   Planetary Sci-Fi Dark Aesthetic // AnthroSynthesis & Arcadian Monoliths
   ========================================================================== */

:root {
  --bg-space: #05080e;
  --bg-surface: #0a0f18;
  --bg-card: rgba(14, 21, 33, 0.85);
  --bg-card-hover: rgba(20, 31, 48, 0.95);
  --border-glow: rgba(0, 240, 255, 0.25);
  --border-amber: rgba(255, 183, 3, 0.3);
  --border-active: #00f0ff;
  
  --text-main: #e2e8f0;
  --text-muted: #8e9fb5;
  --text-bright: #ffffff;
  
  --cyan-glow: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.15);
  --amber-glow: #ffb703;
  --amber-dim: rgba(255, 183, 3, 0.15);
  --emerald-glow: #00ffa3;
  --emerald-dim: rgba(0, 255, 163, 0.15);
  --crimson-glow: #ff3366;
  --purple-glow: #bf55ec;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", "Courier New", Courier, monospace;
  --font-header: "Orbitron", "Segoe UI", sans-serif;

  --hud-clip: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.08);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-space);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(191, 85, 236, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(255, 183, 3, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--cyan-glow);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--cyan-glow);
}

/* Form Controls - 16px min on mobile to prevent iOS auto-zoom */
input, select, textarea, button {
  font-size: 16px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-space);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-glow);
}

/* ==========================================================================
   TOP TELEMETRY & BANNER
   ========================================================================== */

.telemetry-banner {
  background: rgba(4, 7, 12, 0.98);
  border-bottom: 1px solid var(--border-glow);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 1100;
  backdrop-filter: blur(12px);
}

.telemetry-items {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.telemetry-items::-webkit-scrollbar {
  display: none;
}

.telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.telemetry-item strong {
  color: var(--cyan-glow);
}

.telemetry-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald-glow);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-glow);
  animation: pulseDot 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.telemetry-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.audio-synth-toggle {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--cyan-glow);
  color: var(--cyan-glow);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
  min-height: 32px;
}

.audio-synth-toggle:hover, .audio-synth-toggle:active {
  background: var(--cyan-glow);
  color: #000;
}

.audio-synth-toggle.active {
  background: rgba(0, 255, 163, 0.2);
  border-color: var(--emerald-glow);
  color: var(--emerald-glow);
}

/* ==========================================================================
   BREAKING NEWS TICKER
   ========================================================================== */

.breaking-ticker-wrap {
  background: linear-gradient(90deg, #180a0a 0%, #111822 50%, #0d121c 100%);
  border-bottom: 1px solid rgba(255, 51, 102, 0.3);
  display: flex;
  align-items: center;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  overflow: hidden;
}

.ticker-label {
  background: var(--crimson-glow);
  color: #fff;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 2px;
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  font-size: 0.7rem;
}

.ticker-content {
  white-space: nowrap;
  animation: scrollTicker 35s linear infinite;
  color: var(--text-main);
}

.ticker-content span {
  margin-right: 30px;
}

.ticker-content span strong {
  color: var(--amber-glow);
}

/* ==========================================================================
   QUANTUM TRANSPORTER SLIDER // WARP TO TOOLBOX
   ========================================================================== */
.transporter-slider-panel {
  background: linear-gradient(180deg, rgba(8, 14, 24, 0.95) 0%, rgba(4, 7, 12, 0.98) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 25px;
  box-shadow: var(--card-shadow), 0 0 20px rgba(0, 240, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.transporter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.transporter-title {
  font-family: var(--font-header);
  font-size: 0.88rem;
  color: #fff;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.transporter-title span {
  color: var(--cyan-glow);
}

.transporter-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.transporter-status-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--cyan-glow);
  color: var(--cyan-glow);
  transition: all 0.3s ease;
}

.transporter-link-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--amber-glow);
  color: #000 !important;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 4px;
  box-shadow: 0 0 15px var(--amber-glow);
  animation: warpPulse 1s infinite alternate;
}

.transporter-track-wrap {
  position: relative;
  width: 100%;
  height: 48px;
  background: rgba(2, 4, 8, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 3px;
  user-select: none;
  touch-action: none;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 240, 255, 0.1);
  cursor: pointer;
}

.transporter-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f0ff 0%, #00ffa3 35%, #bf55ec 70%, #ffb703 100%);
  border-radius: 24px;
  pointer-events: none;
  opacity: 0.65;
  transition: width 0.04s linear;
}

.transporter-track-label {
  position: absolute;
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 2px;
  pointer-events: none;
  z-index: 2;
  transition: all 0.2s ease;
}

.transporter-handle {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cyan-glow);
  box-shadow: 0 0 15px var(--cyan-glow), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 5;
  color: #000;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background-color 0.1s ease, box-shadow 0.1s ease;
}

.transporter-handle:active {
  cursor: grabbing;
}

/* Transformed / Activated state past 50% */
.transporter-slider-panel.conduit-active {
  border-color: var(--amber-glow);
  box-shadow: var(--card-shadow), 0 0 25px rgba(255, 183, 3, 0.2);
}

.transporter-slider-panel.conduit-active .transporter-status-badge {
  background: rgba(255, 183, 3, 0.2);
  border-color: var(--amber-glow);
  color: var(--amber-glow);
  animation: warpPulse 1s infinite alternate;
}

.transporter-slider-panel.conduit-active .transporter-link-btn {
  display: inline-flex;
}

@keyframes warpPulse {
  0% { transform: scale(0.98); box-shadow: 0 0 5px var(--amber-glow); }
  100% { transform: scale(1.04); box-shadow: 0 0 15px var(--amber-glow); }
}

/* ==========================================================================
   MAIN HEADER & NAVIGATION (MOBILE HAMBURGER + DESKTOP)
   ========================================================================== */

.site-header {
  background: linear-gradient(180deg, rgba(10, 15, 24, 0.98) 0%, rgba(6, 10, 16, 0.92) 100%);
  border-bottom: 1px solid var(--border-glow);
  padding: 12px 16px;
  position: relative;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-glyph {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 183, 3, 0.2));
  border: 1px solid var(--cyan-glow);
  clip-path: var(--hud-clip);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--cyan-glow);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  flex-shrink: 0;
}

.brand-text h1 {
  font-family: var(--font-header);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-text h1 span {
  color: var(--cyan-glow);
  text-shadow: 0 0 8px var(--cyan-glow);
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--amber-glow);
  letter-spacing: 0.5px;
}

/* Mobile Menu Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--cyan-glow);
  color: var(--cyan-glow);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 10px;
  color: var(--text-muted);
  border-radius: 4px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: var(--cyan-dim);
  border-color: var(--cyan-glow);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.nav-link.active {
  background: rgba(0, 240, 255, 0.15);
  font-weight: bold;
}

/* Responsive Mobile Navigation Drawer */
@media (max-width: 920px) {
  .mobile-nav-toggle {
    display: flex;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(6, 10, 16, 0.98);
    border-bottom: 1px solid var(--cyan-glow);
    flex-direction: column;
    padding: 15px 20px;
    gap: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    z-index: 1050;
    backdrop-filter: blur(15px);
  }

  .main-nav.mobile-active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */

.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 15px;
}

@media (min-width: 768px) {
  .page-container {
    padding: 30px 24px;
  }
}

/* Hero Section */
.hero-dispatch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media (min-width: 980px) {
  .hero-dispatch {
    grid-template-columns: 1.6fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
  }
}

.hero-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  position: relative;
}

.hero-img-wrap {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #03060c;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-img-wrap {
    height: 320px;
  }
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-wrap video,
.hero-media video,
video.hero-media {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #03060c;
  display: block;
}

.story-thumb-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #03060c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-thumb-wrap img,
.story-thumb-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(5, 8, 14, 0.88);
  border: 1px solid var(--cyan-glow);
  color: var(--cyan-glow);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.hero-audio-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(5, 8, 14, 0.92);
  border: 1px solid var(--amber-glow);
  color: var(--amber-glow);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-content {
  padding: 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 24px;
  }
}

.hero-meta {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.hero-title {
  font-family: var(--font-header);
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 1.55rem;
  }
}

.hero-summary {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 600px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.btn-cyber {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 170, 255, 0.1));
  border: 1px solid var(--cyan-glow);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  min-height: 40px;
  text-align: center;
}

.btn-cyber:hover, .btn-cyber:active {
  background: var(--cyan-glow);
  color: #000;
  box-shadow: 0 0 15px var(--cyan-glow);
}

.btn-amber {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.2), rgba(255, 140, 0, 0.1));
  border: 1px solid var(--amber-glow);
  color: var(--amber-glow);
}

.btn-amber:hover, .btn-amber:active {
  background: var(--amber-glow);
  color: #000;
  box-shadow: 0 0 15px var(--amber-glow);
}

/* Panel Card */
.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .panel-card {
    padding: 20px;
  }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.panel-title {
  font-family: var(--font-header);
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-title span {
  color: var(--cyan-glow);
}

.mini-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-feed-item {
  padding: 10px;
  background: rgba(6, 10, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--cyan-glow);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mini-feed-item:hover, .mini-feed-item:active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--cyan-glow);
}

.mini-feed-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--amber-glow);
  margin-bottom: 3px;
}

.mini-feed-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

/* ==========================================================================
   SECTION HEADINGS & FILTERS
   ========================================================================== */

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--border-glow);
  padding-bottom: 10px;
  margin-bottom: 20px;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .section-title-wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 40px;
  }
}

.section-title {
  font-family: var(--font-header);
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.4rem;
  }
}

.section-title span {
  color: var(--cyan-glow);
}

.filter-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  background: rgba(14, 21, 33, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.filter-pill:hover, .filter-pill.active {
  background: var(--cyan-glow);
  color: #000;
  font-weight: bold;
}

/* ==========================================================================
   STORIES & STATUES GRIDS (FLUID RESPONSIVE)
   ========================================================================== */

.stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 35px;
}

@media (min-width: 640px) {
  .stories-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
  }
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.story-thumb-wrap {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
}

.story-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(5, 8, 14, 0.88);
  border: 1px solid var(--cyan-glow);
  color: var(--cyan-glow);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 3px;
}

.story-type-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(5, 8, 14, 0.88);
  border: 1px solid var(--amber-glow);
  color: var(--amber-glow);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 3px;
}

.story-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.story-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.story-title {
  font-family: var(--font-header);
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 8px;
}

.story-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 15px;
}

.story-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.listen-btn {
  background: transparent;
  border: 1px solid var(--amber-glow);
  color: var(--amber-glow);
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  min-height: 32px;
}

/* Statues Grid */
.statues-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 35px;
}

@media (min-width: 640px) {
  .statues-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
  }
}

.statue-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.statue-thumb-wrap {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.statue-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.statue-danger-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(5, 8, 14, 0.9);
  border: 1px solid var(--crimson-glow);
  color: var(--crimson-glow);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}

.statue-freq-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(5, 8, 14, 0.9);
  border: 1px solid var(--cyan-glow);
  color: var(--cyan-glow);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 3px;
  cursor: pointer;
}

.statue-body {
  padding: 16px;
}

.statue-name {
  font-family: var(--font-header);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 4px;
}

.statue-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-glow);
  margin-bottom: 10px;
}

.statue-attr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  background: rgba(6, 10, 16, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 4px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

@media (min-width: 480px) {
  .statue-attr-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.statue-attr-grid div strong {
  color: var(--cyan-glow);
  display: block;
}

.statue-quote {
  border-left: 2px solid var(--amber-glow);
  padding-left: 8px;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ==========================================================================
   SECTOR MAP & FACTIONS (RESPONSIVE)
   ========================================================================== */

.sector-map-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 35px;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 900px) {
  .sector-map-wrap {
    grid-template-columns: 1.8fr 1fr;
    padding: 20px;
    gap: 20px;
  }
}

.map-canvas-container {
  width: 100%;
  height: 280px;
  background: #04060a;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .map-canvas-container {
    height: 380px;
  }
}

.map-canvas-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.map-inspector {
  background: rgba(6, 10, 16, 0.8);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.inspector-title {
  font-family: var(--font-header);
  font-size: 1rem;
  color: var(--cyan-glow);
  margin-bottom: 6px;
}

.inspector-coords {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber-glow);
  margin-bottom: 10px;
}

.inspector-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Factions Grid */
.factions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 35px;
}

@media (min-width: 540px) {
  .factions-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
  }
}

.faction-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
}

.faction-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.faction-icon {
  font-size: 1.3rem;
}

.faction-name {
  font-family: var(--font-header);
  font-size: 0.95rem;
  color: #fff;
}

.faction-motto {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber-glow);
  margin-bottom: 6px;
}

.faction-belief {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   CITIZEN DISPATCH & FORMS (TOUCH FRIENDLY)
   ========================================================================== */

.dispatch-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 18px 15px;
  margin-bottom: 35px;
}

@media (min-width: 768px) {
  .dispatch-form-card {
    padding: 25px;
  }
}

.dispatch-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

@media (min-width: 640px) {
  .dispatch-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-glow);
  font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
  background: rgba(6, 10, 16, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #fff;
  font-family: var(--font-main);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 16px; /* Prevents auto zoom on mobile */
  outline: none;
  width: 100%;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

/* ==========================================================================
   MODALS & LIGHTBOX (MOBILE OPTIMIZED)
   ========================================================================== */

.story-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 5, 9, 0.92);
  backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.story-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.story-modal-container {
  width: 100%;
  max-width: 860px;
  max-height: 94vh;
  background: #090e17;
  border: 1px solid var(--cyan-glow);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 240, 255, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header-bar {
  background: rgba(14, 21, 33, 0.98);
  border-bottom: 1px solid var(--border-glow);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.modal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-ctrl-btn {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--cyan-glow);
  color: var(--cyan-glow);
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  min-height: 34px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 6px 10px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover, .modal-close-btn:active {
  color: var(--crimson-glow);
}

.modal-scrollable-body {
  padding: 18px 14px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d1d9e6;
}

@media (min-width: 768px) {
  .modal-scrollable-body {
    padding: 30px;
    font-size: 1.05rem;
    line-height: 1.8;
  }
}

.modal-hero-img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: #03060c;
  border-radius: 6px;
  margin-bottom: 15px;
  border: 1px solid var(--border-glow);
}

@media (min-width: 768px) {
  .modal-hero-img {
    max-height: 340px;
    margin-bottom: 25px;
  }
}

.modal-story-title {
  font-family: var(--font-header);
  font-size: 1.3rem;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .modal-story-title {
    font-size: 1.8rem;
  }
}

.modal-story-meta {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber-glow);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

/* Terminal HUD (Bottom Sheet on Mobile) */
.terminal-overlay {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100vw;
  height: 350px;
  background: rgba(4, 7, 12, 0.98);
  border-top: 1px solid var(--amber-glow);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  backdrop-filter: blur(15px);
}

@media (min-width: 640px) {
  .terminal-overlay {
    bottom: 20px;
    right: 20px;
    width: 560px;
    height: 400px;
    border: 1px solid var(--amber-glow);
    border-radius: 6px;
    transform: translateY(120%);
  }
}

.terminal-overlay.active {
  transform: translateY(0);
}

.term-topbar {
  background: rgba(255, 183, 3, 0.15);
  border-bottom: 1px solid var(--amber-glow);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber-glow);
  font-weight: bold;
}

.term-output-area {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.4;
}

.term-line {
  margin-bottom: 3px;
}
.term-cyan { color: var(--cyan-glow); }
.term-amber { color: var(--amber-glow); }
.term-green { color: var(--emerald-glow); }
.term-red { color: var(--crimson-glow); }
.term-gray { color: var(--text-muted); }
.term-white { color: #fff; }

.term-input-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.7);
  border-top: 1px solid rgba(255, 183, 3, 0.2);
}

.term-prompt {
  color: var(--amber-glow);
  font-family: var(--font-mono);
  font-weight: bold;
  margin-right: 6px;
}

.term-input-row input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 16px;
  flex: 1;
}

/* ==========================================================================
   FOOTER (CLEAN RESPONSIVE)
   ========================================================================== */

.site-footer {
  background: #04060a;
  border-top: 1px solid var(--border-glow);
  padding: 30px 16px 20px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

@media (min-width: 540px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 860px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col h4 {
  font-family: var(--font-header);
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.footer-col h4 span {
  color: var(--cyan-glow);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.footer-links li a {
  color: var(--text-muted);
}
.footer-links li a:hover {
  color: var(--cyan-glow);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}
