/* ==========================================================================
   SPIDEY DETECTIVE BUREAU — STYLESHEET
   Aesthetic: Detective Noir (Deep ink, Noir emerald, Detective amber, Bone)
   Strictly adheres to original IP rules: No superhero red+blue colors.
   ========================================================================== */

:root {
  --color-bg: #0A0E0D;
  --color-bg-alt: #0e1613;
  --color-surface: #121c17;
  --color-card: #16241e;
  --color-card-hover: #1c2e26;
  --color-emerald: #0B3B2E;
  --color-emerald-light: #185242;
  --color-emerald-bright: #27856b;
  --color-amber: #E0A63C;
  --color-amber-muted: #ad7d24;
  --color-amber-glow: rgba(224, 166, 60, 0.15);
  --color-bone: #EDE6D6;
  --color-bone-muted: #a6a092;
  --color-bone-faint: rgba(237, 230, 214, 0.08);
  --color-rust: #8C3B2E;
  --color-rust-faint: rgba(140, 59, 46, 0.2);
  --color-border: rgba(237, 230, 214, 0.1);
  --color-border-accent: rgba(224, 166, 60, 0.35);

  --font-display: "Georgia", "Times New Roman", serif;
  --font-typewriter: "Courier New", Courier, "Cascadia Code", monospace;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 24px rgba(224, 166, 60, 0.2);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-bone);
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  background-image: 
    url("../img/web-bg.svg"),
    radial-gradient(ellipse at 50% 0%, rgba(11, 59, 46, 0.35) 0%, transparent 70%);
  background-attachment: fixed;
  background-position: top right, top center;
  background-repeat: no-repeat;
  background-size: 800px, 100% 600px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Venetian Blinds Light Stripe Overlay (Atmospheric Noir Effect) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 2px,
    transparent 2px,
    transparent 6px
  );
  opacity: 0.65;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-bone);
}

.typewriter {
  font-family: var(--font-typewriter);
  letter-spacing: 0.05em;
}

a {
  color: var(--color-amber);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--color-bone);
}

/* Header & Navigation */
.header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(10, 14, 13, 0.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mascot {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-bone);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-sub {
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
  color: var(--color-amber);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
  color: var(--color-bone-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-amber);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-amber);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-amber);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--color-amber);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-amber);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
  color: var(--color-bone-muted);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  background: rgba(18, 28, 23, 0.6);
}

.radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-amber);
  box-shadow: 0 0 8px var(--color-amber);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(11, 59, 46, 0.15) 0%, transparent 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-typewriter);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-amber);
  background: rgba(224, 166, 60, 0.1);
  border: 1px solid rgba(224, 166, 60, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--color-bone);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--color-amber);
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.hero-desc {
  color: var(--color-bone-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-typewriter);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.5rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-amber);
  color: var(--color-bg);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(224, 166, 60, 0.25);
}

.btn-primary:hover {
  background: #f0b54b;
  color: var(--color-bg);
  box-shadow: 0 6px 18px rgba(224, 166, 60, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(18, 28, 23, 0.9);
  color: var(--color-bone);
  border: 1px solid var(--color-border-accent);
}

.btn-secondary:hover {
  background: var(--color-card-hover);
  color: var(--color-amber);
  border-color: var(--color-amber);
}

.hero-mascot-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: 6px;
  padding: 2rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  text-align: center;
  position: relative;
}

.hero-mascot-img {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.25rem;
  display: block;
}

.mascot-caption {
  font-family: var(--font-typewriter);
  font-size: 0.8rem;
  color: var(--color-amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mascot-subcaption {
  font-size: 0.75rem;
  color: var(--color-bone-muted);
  margin-top: 0.25rem;
}

/* Sections */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 2rem;
  color: var(--color-bone);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 2px;
  background-color: var(--color-amber);
}

.section-subtitle {
  font-family: var(--font-typewriter);
  font-size: 0.82rem;
  color: var(--color-bone-muted);
  margin-top: 0.25rem;
}

.scan-indicator {
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
  color: var(--color-amber);
  background: rgba(224, 166, 60, 0.08);
  border: 1px solid rgba(224, 166, 60, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

/* Noir Case Card */
.case-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-amber);
  border-radius: 4px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.case-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-card);
}

.case-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.case-dossier-num {
  font-family: var(--font-typewriter);
  font-size: 0.72rem;
  color: var(--color-amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chain-badge {
  font-family: var(--font-typewriter);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  border: 1px solid var(--color-border);
  background: rgba(11, 59, 46, 0.4);
  color: var(--color-bone);
}

.case-symbol {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-bone);
  line-height: 1.1;
}

.case-name {
  font-size: 0.8rem;
  color: var(--color-bone-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  margin-bottom: 0.75rem;
}

.case-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--color-border);
}

.case-price {
  font-family: var(--font-typewriter);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-bone);
}

.change-pill {
  font-family: var(--font-typewriter);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.change-up {
  background: rgba(39, 133, 107, 0.25);
  color: #5ce3bd;
  border: 1px solid rgba(39, 133, 107, 0.4);
}

.change-down {
  background: var(--color-rust-faint);
  color: #ff8c7a;
  border: 1px solid rgba(140, 59, 46, 0.5);
}

.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-family: var(--font-typewriter);
  color: var(--color-bone-muted);
  text-transform: uppercase;
  font-size: 0.68rem;
}

.metric-val {
  font-family: var(--font-typewriter);
  color: var(--color-bone);
  font-weight: 600;
}

/* Pressure Bar */
.pressure-wrapper {
  margin-bottom: 0.85rem;
}

.pressure-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-typewriter);
  font-size: 0.68rem;
  margin-bottom: 0.25rem;
  color: var(--color-bone-muted);
}

.pressure-bar {
  height: 6px;
  background: var(--color-rust);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}

.pressure-fill {
  background: var(--color-emerald-bright);
  height: 100%;
  transition: width 0.3s ease;
}

/* Hype Score Meter */
.hype-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 13, 0.6);
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.hype-label {
  font-family: var(--font-typewriter);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--color-amber);
}

.hype-score {
  font-family: var(--font-typewriter);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-bone);
}

.case-card-footer {
  margin-top: auto;
}

.btn-chart {
  width: 100%;
  font-size: 0.78rem;
  padding: 0.45rem 0.75rem;
}

/* Intercepted Chatter Card */
.chatter-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-emerald-bright);
  border-radius: 4px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.chatter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.chatter-ticker {
  font-family: var(--font-typewriter);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-bone);
}

.velocity-chip {
  font-family: var(--font-typewriter);
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  background: rgba(224, 166, 60, 0.15);
  border: 1px solid var(--color-amber);
  color: var(--color-amber);
  border-radius: 2px;
}

.chatter-stats {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
  color: var(--color-bone-muted);
  margin-bottom: 0.85rem;
}

.post-excerpt {
  font-size: 0.82rem;
  color: var(--color-bone);
  background: rgba(10, 14, 13, 0.7);
  padding: 0.75rem;
  border-radius: 3px;
  border-left: 2px solid var(--color-amber-muted);
  margin-bottom: 0.75rem;
  line-height: 1.45;
  font-style: italic;
  /* Scrollable quote: the FULL post stays available, nothing is hidden.
     Fixed height keeps the card grid tidy; the reader scrolls inside it. */
  max-height: 132px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: ns-resize;
}

/* Quote becomes scrollable by keyboard too (it is focusable in the markup). */
.post-excerpt:focus-visible {
  outline: 1px solid var(--color-crimson-hover);
  outline-offset: 2px;
}

/* Noir scrollbar so it is obvious the box scrolls. */
.post-excerpt::-webkit-scrollbar { width: 8px; }
.post-excerpt::-webkit-scrollbar-track {
  background: rgba(237, 230, 214, 0.06);
  border-radius: 3px;
}
.post-excerpt::-webkit-scrollbar-thumb {
  background: var(--color-amber-muted);
  border-radius: 3px;
}
.post-excerpt::-webkit-scrollbar-thumb:hover { background: var(--color-amber); }
.post-excerpt {
  scrollbar-width: thin;
  scrollbar-color: var(--color-amber-muted) rgba(237, 230, 214, 0.06);
}

/* Wrapper carries the scroll affordances (fade + hint) around the quote box. */
.post-excerpt-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}
.post-excerpt-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(180deg, rgba(10, 14, 13, 0), rgba(10, 14, 13, 0.96));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.post-excerpt-wrap.is-scrollable:not(.at-end)::after { opacity: 1; }

.scroll-hint {
  position: absolute;
  right: 12px;
  bottom: 5px;
  font-family: var(--font-typewriter);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--color-amber);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.post-excerpt-wrap.is-scrollable:not(.at-end) .scroll-hint { opacity: 0.95; }

/* Footer row: single line, author shrinks with an ellipsis, link never wraps. */
.chatter-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(237, 230, 214, 0.14);
}
.chatter-footer .post-author {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-intercept {
  flex: 0 0 auto;
  font-family: var(--font-typewriter);
  font-size: 0.72rem;
  white-space: nowrap;
  color: var(--color-amber);
}
.post-intercept.muted { color: var(--color-bone-muted); }

.post-author {
  font-family: var(--font-typewriter);
  font-size: 0.7rem;
  color: var(--color-amber);
}

/* Dispatches Section (Table & Cards) */
.dispatches-table-wrapper {
  overflow-x: auto;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.noir-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.noir-table th {
  background: rgba(14, 22, 19, 0.95);
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-amber);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.noir-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(237, 230, 214, 0.06);
  color: var(--color-bone);
  white-space: nowrap;
}

.noir-table tr:hover td {
  background: rgba(22, 36, 30, 0.5);
}

.channel-tag {
  font-family: var(--font-typewriter);
  font-size: 0.68rem;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  margin-right: 0.25rem;
  background: rgba(237, 230, 214, 0.06);
  border: 1px solid var(--color-border);
}

/* Performance Record / KPI Panels */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.kpi-title {
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-bone-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-amber);
  line-height: 1.1;
}

.kpi-sub {
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
  color: var(--color-bone-muted);
  margin-top: 0.25rem;
}

.disclaimer-banner {
  background: rgba(140, 59, 46, 0.12);
  border: 1px solid rgba(140, 59, 46, 0.35);
  border-left: 4px solid var(--color-rust);
  padding: 1rem 1.25rem;
  border-radius: 3px;
  font-size: 0.85rem;
  color: var(--color-bone-muted);
  line-height: 1.5;
}

/* Bureau Pipeline Workflow (4 Steps) */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.pipeline-step {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.5rem;
  position: relative;
}

.step-number {
  font-family: var(--font-typewriter);
  font-size: 0.8rem;
  color: var(--color-amber);
  background: rgba(224, 166, 60, 0.1);
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-bone);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--color-bone-muted);
  line-height: 1.6;
}

/* Channels Section */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.channel-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.channel-card:hover {
  border-color: var(--color-amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.channel-card-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-bone);
  margin-bottom: 0.25rem;
}

.channel-card-sub {
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
  color: var(--color-amber);
  margin-bottom: 0.75rem;
}

.channel-card-desc {
  font-size: 0.85rem;
  color: var(--color-bone-muted);
}

/* Token Section */
.token-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: 6px;
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.token-badge {
  font-family: var(--font-typewriter);
  font-size: 0.8rem;
  color: var(--color-amber);
  background: rgba(224, 166, 60, 0.12);
  border: 1px solid var(--color-amber);
  padding: 0.25rem 0.75rem;
  display: inline-block;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.token-address-box {
  background: rgba(10, 14, 13, 0.8);
  border: 1px dashed var(--color-border);
  padding: 1rem;
  border-radius: 4px;
  margin: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.token-ca-label {
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
  color: var(--color-bone-muted);
}

.token-ca-val {
  font-family: var(--font-typewriter);
  font-size: 0.9rem;
  color: var(--color-amber);
  font-weight: 700;
  word-break: break-all;      /* a 44-char Solana mint must wrap, not overflow */
  overflow-wrap: anywhere;
}

/* Live contract address link (inserted by tools/after_launch.py) */
.token-ca-link {
  color: var(--color-amber);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.token-ca-link:hover,
.token-ca-link:focus-visible {
  color: var(--color-crimson, #9B1B30);
  border-bottom-color: currentColor;
}

/* Filter Controls (for cases.html) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1.75rem;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
  color: var(--color-bone-muted);
  text-transform: uppercase;
}

.filter-select, .search-input {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-bone);
  font-family: var(--font-typewriter);
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  border-radius: 3px;
  outline: none;
}

.filter-select:focus, .search-input:focus {
  border-color: var(--color-amber);
}

.search-input {
  min-width: 220px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--color-card);
  border: 1px dashed var(--color-border);
  border-radius: 4px;
  color: var(--color-bone-muted);
  font-family: var(--font-typewriter);
  font-size: 0.9rem;
}

.empty-state-title {
  color: var(--color-amber);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  margin-top: auto;
  background: #070a09;
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-bone);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-bone-muted);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--color-bone-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--color-amber);
}

.footer-disclaimer-box {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-bone-muted);
  line-height: 1.6;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-family: var(--font-typewriter);
  font-size: 0.7rem;
  color: var(--color-bone-muted);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-mascot-card {
    max-width: 320px;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-wrapper {
    flex-wrap: wrap;
    position: relative;
  }
  .nav-toggle {
    display: flex;
  }
  .header-status {
    display: none;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 0 0.5rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.75rem;
  }
  .nav-links.nav-open {
    display: flex;
  }
  .nav-link {
    font-size: 0.95rem;
    padding: 0.35rem 0;
    width: 100%;
    display: block;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input {
    width: 100%;
  }
}

/* ==========================================================================
   RESTYLE PASS — crimson-noir accent, web motifs, SPIDER-SENSE indicator
   Original design language only: no costume pattern, no superhero figure.
   ========================================================================== */

:root {
  --color-crimson: #9B1B30;
  --color-crimson-hover: #C8324B;
  --color-crimson-faint: rgba(155, 27, 48, 0.22);
  --color-crimson-border: rgba(200, 50, 75, 0.45);
}

/* --- Hero web overlay: generic radial web, background texture only --- */
.hero {
  position: relative;
  overflow: hidden;
}
.web-overlay {
  position: absolute;
  top: -12%;
  right: -10%;
  width: 720px;
  height: 720px;
  max-width: 90vw;
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
}
.web-overlay--left {
  left: -18%;
  right: auto;
  top: auto;
  bottom: -22%;
  opacity: 0.08;
}
.hero-grid { position: relative; z-index: 1; }

/* --- Web-strand section dividers --- */
.section-divider {
  position: relative;
  height: 1px;
  margin: 0 auto;
  max-width: 1180px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(224, 166, 60, 0.25) 12%,
    rgba(200, 50, 75, 0.45) 50%,
    rgba(224, 166, 60, 0.25) 88%,
    transparent 100%);
}
.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  top: -7px;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(224, 166, 60, 0.45);
  border-radius: 50%;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}
.section-divider::before { left: 10%; }
.section-divider::after  { right: 10%; }

/* --- Case cards: crimson spine + web corner --- */
.case-card {
  position: relative;
  border-left: 3px solid var(--color-crimson);
}
.case-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 66px;
  height: 66px;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='66' height='66'><g fill='none' stroke='%23E0A63C' stroke-opacity='0.5' stroke-width='1'><path d='M66 0 L0 0 M66 0 L66 66 M66 0 L14 52 M66 0 L52 14'/><path d='M66 0 A52 52 0 0 0 14 52'/><path d='M66 0 A30 30 0 0 0 36 30'/><path d='M66 0 A12 12 0 0 0 54 12'/></g></svg>");
  background-repeat: no-repeat;
}
.case-card:hover { border-left-color: var(--color-crimson-hover); }

/* --- Crimson accents on existing chrome --- */
.nav-link.active,
.nav-link:hover { color: var(--color-crimson-hover); }
.nav-link.active::after { background: var(--color-crimson-hover); }
.section-eyebrow,
.hero-tag { border-color: var(--color-crimson-border); color: var(--color-crimson-hover); }
.btn-primary {
  background: var(--color-crimson);
  border-color: var(--color-crimson);
  color: var(--color-bone);
}
.btn-primary:hover { background: var(--color-crimson-hover); border-color: var(--color-crimson-hover); }
.section-title::after { background: linear-gradient(90deg, var(--color-crimson-hover), var(--color-amber)); }

/* --- SPIDER-SENSE freshness indicator --- */
.sense-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-crimson-border);
  border-radius: 999px;
  background: rgba(155, 27, 48, 0.12);
  font-family: var(--font-typewriter);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--color-bone);
  white-space: nowrap;
}
.sense-ring {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}
.sense-ring span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--color-crimson-hover);
  animation: sense-pulse 2s ease-out infinite;
}
.sense-ring span:nth-child(2) { animation-delay: 0.7s; }
.sense-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--color-crimson-hover);
}
@keyframes sense-pulse {
  0%   { transform: scale(0.6); opacity: 0.85; }
  100% { transform: scale(2.1); opacity: 0; }
}
.sense-section { display: flex; justify-content: flex-end; margin-bottom: 0.75rem; }

/* --- Hype score: label + score ring (markup: .hype-meter > .hype-label + .hype-score) --- */
.hype-meter {
  --pct: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0 0.65rem;
}
.hype-label {
  font-family: var(--font-typewriter);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--color-bone-muted);
  text-transform: uppercase;
}
/* Ring is drawn with layered backgrounds so the number stays visible on top. */
.hype-score {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-typewriter);
  font-size: 0.68rem;
  line-height: 1;
  color: var(--color-bone);
  background:
    radial-gradient(closest-side,
      var(--color-card) 0,
      var(--color-card) calc(100% - 5px),
      transparent calc(100% - 5px)),
    conic-gradient(var(--color-crimson-hover) calc(var(--pct) * 1%),
      rgba(237, 230, 214, 0.14) 0);
}

/* Safety net: never let a long metric string spill outside the card */
.metric-item { min-width: 0; }
.metric-val, .metric-label { overflow-wrap: anywhere; }
.metric-val { font-weight: 600; }

/* Guarantee breathing room between the hype ring and the card's action button */
.case-card-footer { margin-top: auto; padding-top: 0.75rem; }

/* Small-price rendering: subscript zero-count, e.g. $0.0₅269 (DexScreener-style).
   Amber + underline so the digit reads as a below-baseline marker, never as a
   decimal point. The exact raw value is on the element's title attribute. */
.price-sub {
  font-size: 0.85em;
  vertical-align: -0.1em;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-amber);
  padding: 0 0.5px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .sense-ring span { animation: none; opacity: 0.5; }
  .web-overlay { opacity: 0.07; }
}

@media (max-width: 640px) {
  .web-overlay { width: 420px; height: 420px; opacity: 0.09; }
  .sense-pill { font-size: 0.66rem; padding: 0.3rem 0.6rem; }
}
