/* ==========================================================================
   HASELONSOLVEDCHESSYET.COM — MASTER STYLESHEET
   Cyber-telemetry dark mode, SVG distortion melting, dynamic glitches
   ========================================================================== */

:root {
  --bg-primary: #080a0f;
  --bg-card: #0e121b;
  --bg-card-hover: #131926;
  --bg-input: #151c2c;
  --border-dim: #1e2638;
  --border-bright: #2f3e5c;
  
  --text-main: #f0f4fc;
  --text-muted: #8b9bb4;
  --text-dim: #54647e;
  
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-red: #ff2b56;
  --accent-red-glow: rgba(255, 43, 86, 0.4);
  --accent-gold: #ffb800;
  --accent-green: #00ff88;
  --accent-purple: #9d4edd;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", Menlo, Monaco, Consolas, monospace;
  
  --melt-intensity: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.cyber-dark {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 43, 86, 0.05) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.top-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  background: rgba(14, 18, 27, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

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

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hud-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-bright);
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
  color: #fff;
  transform: translateY(-1px);
}

.hud-btn.highlight {
  background: linear-gradient(135deg, #1e2638, #2a3754);
  border-color: #3b82f6;
}

.hud-btn.highlight:hover {
  border-color: var(--accent-cyan);
  background: linear-gradient(135deg, #232d44, #324367);
}

.hud-btn-sm {
  background: var(--bg-input);
  border: 1px solid var(--border-bright);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.hud-btn-sm:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
}

.hud-btn-sm.highlight {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.hud-btn-sm.highlight:hover {
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.35);
  background: rgba(255, 184, 0, 0.1);
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
.content-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  position: relative;
  transition: filter 0.2s ease;
}



/* ==========================================================================
   LAYOUT & CONTAINER & TARGETED MELTING
   ========================================================================== */
.content-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  position: relative;
}

/* ==========================================================================
   AMPED-UP REALITY MELTING & MOLTEN DISTORTION
   ========================================================================== */
body.in-melt-zone {
  background-color: #0c0205 !important;
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(255, 43, 86, calc(0.14 + var(--melt-intensity, 0.5) * 0.22)) 0%, rgba(10, 2, 5, 0.96) 50%, #050103 100%),
    linear-gradient(rgba(255, 43, 86, calc(0.04 + var(--melt-intensity, 0.5) * 0.08)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 43, 86, calc(0.04 + var(--melt-intensity, 0.5) * 0.08)) 1px, transparent 1px) !important;
  background-size: 100% 100%, 36px 36px, 36px 36px !important;
  transition: background-color 0.4s ease;
}

/* Targeted Liquify Distortion on Major Modules */
body.in-melt-zone .hero-section,
body.in-melt-zone .countdown-card,
body.in-melt-zone .tweet-card,
body.in-melt-zone .state-inspector-card,
body.in-melt-zone #orders-of-magnitude-section .module-header,
body.in-melt-zone #orders-of-magnitude-section .slider-hud,
body.in-melt-zone #elon-timeline-section,
body.in-melt-zone .site-footer {
  filter: url(#melt-distortion);
  transition: filter 0.15s ease;
}

/* Molten sagging & radiant heat bleed on cards */
body.in-melt-zone .countdown-card,
body.in-melt-zone .tweet-card,
body.in-melt-zone .state-inspector-card,
body.in-melt-zone #elon-timeline-section {
  border-color: rgba(255, 43, 86, calc(0.35 + var(--melt-intensity, 0.5) * 0.65));
  box-shadow: 
    0 15px 40px rgba(255, 43, 86, calc(0.2 + var(--melt-intensity, 0.5) * 0.45)),
    0 30px 90px rgba(255, 80, 0, calc(0.1 + var(--melt-intensity, 0.5) * 0.3)),
    inset 0 -12px 28px rgba(255, 43, 86, calc(0.1 + var(--melt-intensity, 0.5) * 0.25));
  animation: cardMoltenSag 3.5s ease-in-out infinite alternate;
}

@keyframes cardMoltenSag {
  0% {
    border-radius: 16px 16px 18px 18px;
    transform: translateY(0) skewX(0deg);
  }
  50% {
    border-radius: 14px 18px 28px 22px;
    transform: translateY(4px) skewX(0.9deg) scaleY(1.015);
  }
  100% {
    border-radius: 18px 14px 24px 34px;
    transform: translateY(8px) skewX(-0.9deg) scaleY(1.025);
  }
}

/* Molten Droplet Drip Accents under major cards */
body.in-melt-zone .countdown-card::after,
body.in-melt-zone .state-inspector-card::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 20%;
  right: 20%;
  height: 8px;
  background: radial-gradient(ellipse at center, rgba(255, 43, 86, 0.95) 0%, rgba(255, 100, 0, 0.7) 45%, transparent 80%);
  filter: blur(3px);
  border-radius: 50%;
  animation: moltenDripPulse 2s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes moltenDripPulse {
  0% { opacity: 0.4; transform: scaleX(0.85) translateY(0); }
  100% { opacity: 1; transform: scaleX(1.15) translateY(5px); }
}

/* Molten Title & Digits Heat Effect */
body.in-melt-zone .main-title {
  background: linear-gradient(180deg, #ffffff 15%, #ff708d 65%, #ff2b56 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(255, 43, 86, calc(0.4 + var(--melt-intensity, 0.5) * 0.6)));
  animation: titleMoltenHeat 3s ease-in-out infinite alternate;
}

@keyframes titleMoltenHeat {
  0% { transform: translateY(0) skewX(0deg); }
  50% { transform: translateY(3px) skewX(1.2deg) scaleY(1.02); }
  100% { transform: translateY(6px) skewX(-1.2deg) scaleY(1.04); }
}

body.in-melt-zone .time-number {
  color: #ff3b65;
  text-shadow: 
    0 0 15px rgba(255, 59, 101, 0.9), 
    0 6px 14px rgba(255, 0, 55, 0.6);
  animation: digitsMoltenSag 2.5s ease-in-out infinite alternate;
}

@keyframes digitsMoltenSag {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px) scaleY(1.08); }
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(14, 18, 27, 0.7);
  border: 1px solid var(--border-dim);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.badge-tag {
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-status {
  color: var(--accent-red);
  font-weight: 700;
}

.main-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}


/* ==========================================================================
   COUNTDOWN CARD
   ========================================================================== */
.countdown-card {
  width: 100%;
  max-width: 820px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.countdown-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-red), transparent);
}

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

.countdown-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.target-date-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.5rem 0 1.25rem;
  flex-wrap: wrap;
}

.time-block {
  background: var(--bg-input);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  min-width: 85px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ms-block {
  min-width: 95px;
  border-color: rgba(255, 43, 86, 0.3);
}

.time-number {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.03em;
}

.ms-block .time-number {
  color: var(--accent-red);
}

.time-unit {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.time-separator {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--border-bright);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.countdown-footer {
  margin-top: 1rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-input);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, var(--accent-cyan));
  border-radius: 999px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.progress-legend {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.6rem;
}

#countdown-percent-text {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* ==========================================================================
   TWEET CARD COMPONENT
   ========================================================================== */
.tweet-card-wrapper {
  width: 100%;
  max-width: 620px;
  margin: 1rem auto 0;
}

.tweet-card {
  background: #000000;
  border: 1px solid #2f3336;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  transition: border-color 0.2s ease;
}

.tweet-card:hover {
  border-color: #536471;
}

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

.tweet-author-info {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.avatar-elon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #15181c;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  flex-shrink: 0;
}

.elon-vector-avatar {
  width: 100%;
  height: 100%;
}

.verified-svg {
  display: block;
  flex-shrink: 0;
}

.author-name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.author-name {
  font-weight: 700;
  color: #e7e9ea;
  font-size: 0.95rem;
}

.verified-badge {
  color: #1d9bf0;
  font-size: 0.9rem;
}

.author-handle {
  color: #71767b;
  font-size: 0.88rem;
}

.tweet-context {
  color: #71767b;
  font-size: 0.8rem;
}

.tweet-x-link {
  color: #71767b;
  transition: color 0.2s;
}

.tweet-x-link:hover {
  color: #1d9bf0;
}

.tweet-body {
  font-size: 0.98rem;
  line-height: 1.45;
  color: #e7e9ea;
  margin-bottom: 0.85rem;
}

.tweet-body p {
  margin-bottom: 0.65rem;
}

.tweet-highlight {
  font-weight: 600;
  color: #fff;
  background: rgba(255, 43, 86, 0.15);
  padding: 0.2rem 0.4rem;
  border-left: 3px solid var(--accent-red);
  border-radius: 0 4px 4px 0;
}

.tweet-meta {
  font-size: 0.82rem;
  color: #71767b;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #2f3336;
}

.views-count {
  font-weight: 700;
  color: #e7e9ea;
}

/* Community Note Satirical Box */
.community-note {
  margin-top: 0.85rem;
  background: #16181c;
  border: 1px solid #2f3336;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
}

.note-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #e7e9ea;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.note-body {
  color: #cfd9de;
  line-height: 1.4;
  margin-bottom: 0.65rem;
}

.note-feedback {
  font-size: 0.78rem;
  color: #71767b;
}

.feedback-btn {
  background: #202327;
  border: 1px solid #333639;
  color: #e7e9ea;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  cursor: pointer;
  margin-left: 0.25rem;
}

.feedback-btn.active {
  background: rgba(29, 155, 240, 0.2);
  border-color: #1d9bf0;
  color: #1d9bf0;
}

/* Official Tweet Action Bar */
.tweet-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.5rem 0.25rem;
  margin-top: 0.85rem;
  border-top: 1px solid #2f3336;
  color: #71767b;
}

.tweet-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #71767b;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.tweet-action:hover {
  background: rgba(29, 155, 240, 0.1);
  color: #1d9bf0;
}

.tweet-action.repost:hover {
  background: rgba(0, 186, 124, 0.1);
  color: #00ba7c;
}

.tweet-action.like:hover {
  background: rgba(249, 24, 128, 0.1);
  color: #f91880;
}

.tweet-action.copy-action-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
}

.tweet-action.copied {
  color: var(--accent-cyan) !important;
  background: rgba(0, 240, 255, 0.15) !important;
}

/* ==========================================================================
   GENERIC MODULE CARD
   ========================================================================== */
.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.module-header {
  margin-bottom: 2rem;
}

.module-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.module-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.module-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 1: LOGARITHMIC SLIDER & HUD
   ========================================================================== */
.slider-hud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
}

.hud-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.font-mono {
  font-family: var(--font-mono);
}

.highlight-gold {
  color: var(--accent-gold);
}

.highlight-green {
  color: var(--accent-green);
}

.highlight-red {
  color: var(--accent-red);
}

/* Range Slider Styling */
.log-slider-container {
  position: relative;
  padding: 1.5rem 0 4.5rem;
}

.slider-track-wrap {
  position: relative;
  width: 100%;
}

.log-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, 
    var(--accent-green) 0%, 
    var(--accent-cyan) 16.6%, 
    var(--accent-gold) 35%, 
    var(--accent-red) 70%, 
    #ff0055 100%
  );
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.log-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan), 0 4px 10px rgba(0,0,0,0.6);
  cursor: grab;
  transition: transform 0.1s, border-color 0.2s, box-shadow 0.2s;
}

.log-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
}

.log-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan), 0 4px 10px rgba(0,0,0,0.6);
  cursor: grab;
}

/* In extreme melt state, track and thumb turn into superheated plasma */
body.in-melt-zone .slider-fill-glow {
  opacity: 1;
  background: radial-gradient(ellipse at center, rgba(255, 43, 86, 0.85) 0%, rgba(255, 90, 0, 0.5) 45%, transparent 75%);
  filter: blur(14px);
  animation: sliderMeltGlow 1.2s ease-in-out infinite alternate;
}

@keyframes sliderMeltGlow {
  0% { transform: scaleY(1); opacity: 0.7; }
  100% { transform: scaleY(1.7); opacity: 1; }
}

body.in-melt-zone .log-slider::-webkit-slider-thumb {
  border-color: #ff0044;
  box-shadow: 
    0 0 25px #ff2b56, 
    0 0 55px rgba(255, 43, 86, 0.95), 
    0 0 90px rgba(255, 110, 0, 0.75);
  animation: thumbPulse 0.5s ease-in-out infinite alternate;
}

@keyframes thumbPulse {
  from { transform: scale(1.15); }
  to { transform: scale(1.4); }
}

/* Milestone Pins Above and Below Track */
.log-slider-container {
  position: relative;
  padding: 1rem 0 2rem;
}

.slider-milestones-above {
  position: relative;
  width: 100%;
  height: 48px;
  margin-bottom: 0.6rem;
}

.slider-milestones-below {
  position: relative;
  width: 100%;
  height: 48px;
  margin-top: 0.85rem;
}

.milestone-pin {
  position: absolute;
  transform: translateX(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0;
  transition: all 0.2s ease;
}

.milestone-pin.pin-above {
  bottom: 0;
}

.milestone-pin.pin-below {
  top: 0;
}

.milestone-pin:hover, .milestone-pin.active {
  color: #fff;
}

.pin-tick {
  width: 2px;
  height: 8px;
  background: var(--border-bright);
  transition: height 0.2s, background 0.2s;
}

.milestone-pin:hover .pin-tick,
.milestone-pin.active .pin-tick {
  height: 12px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.milestone-pin.danger .pin-tick {
  background: rgba(255, 43, 86, 0.4);
}

.milestone-pin.danger:hover .pin-tick,
.milestone-pin.danger.active .pin-tick {
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
}

.pin-tick.solved-boundary {
  width: 3px;
  background: var(--accent-gold);
}

.pin-exp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.pin-name {
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0.85;
}

/* ==========================================================================
   STATE INSPECTOR CARD & MELTING ZONE
   ========================================================================== */
.state-inspector-card {
  background: var(--bg-input);
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  padding: 1.75rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.inspector-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.inspector-status-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.inspector-status-badge.solved {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

.inspector-status-badge.impossible {
  background: rgba(255, 43, 86, 0.2);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  animation: badgeBlink 1s infinite alternate;
}

@keyframes badgeBlink {
  0% { opacity: 0.7; }
  100% { opacity: 1; box-shadow: 0 0 12px var(--accent-red-glow); }
}

.inspector-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.inspector-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.inspector-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.inspector-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.telem-item {
  background: rgba(14, 18, 27, 0.6);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.telem-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.telem-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  word-break: break-all;
}

/* ==========================================================================
   FLOATING GLITCH OVERLAY LAYER & GROK COMPRESSION SPINNER
   ========================================================================== */
.floating-glitch-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
  display: none;
}

body.in-melt-zone .floating-glitch-layer {
  display: block;
}

.spinner-icon {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 43, 86, 0.25);
  border-top-color: var(--accent-red);
  border-right-color: #ff8533;
  border-radius: 50%;
  animation: spin var(--spinner-speed, 0.6s) linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.floating-spinner-card.single-grok-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(14, 18, 27, 0.94);
  border: 1px solid var(--accent-red);
  box-shadow: 
    0 0 30px rgba(255, 43, 86, 0.6), 
    0 0 60px rgba(255, 90, 0, 0.35), 
    inset 0 0 15px rgba(255, 43, 86, 0.25);
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  backdrop-filter: blur(14px);
  z-index: 10000;
  animation: grokBubbleFloat 2.5s ease-in-out infinite alternate;
  pointer-events: auto;
}

@keyframes grokBubbleFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   SECTION 2: ELON TIMELINE
   ========================================================================== */
.timeline-container {
  position: relative;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-container::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 2px;
  background: var(--border-bright);
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--border-bright);
  transform: translateX(0);
}

.timeline-item.past .timeline-dot {
  border-color: #475569;
}

.timeline-item.active-target .timeline-dot {
  border-color: var(--accent-red);
  background: var(--accent-red);
  box-shadow: 0 0 12px var(--accent-red);
}

.timeline-item.future .timeline-dot {
  border-color: var(--accent-gold);
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.timeline-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 700;
}

.timeline-badge.missed {
  background: rgba(255, 43, 86, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(255, 43, 86, 0.4);
}

.timeline-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.timeline-badge.ongoing {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.timeline-badge.inevitable {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dim);
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 1.25rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.text-btn {
  background: none;
  border: none;
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}

.text-btn:hover {
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .top-nav-bar {
    padding: 0.75rem 1rem;
  }
  .brand-text {
    font-size: 0.75rem;
  }
  .content-wrapper {
    padding: 1.5rem 1rem 3rem;
    gap: 2.5rem;
  }
  .module-card {
    padding: 1.5rem 1.15rem;
  }
  .countdown-card {
    padding: 1.25rem 1rem;
  }
  .time-block {
    min-width: 68px;
    padding: 0.5rem 0.4rem;
  }
  .time-number {
    font-size: 1.6rem;
  }
  .time-separator {
    font-size: 1.3rem;
  }
  .timeline-container {
    padding-left: 1.5rem;
  }
  .floating-spinner-card.single-grok-bubble {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
  }
}
