/* ==========================================================================
   MY NODE MAP — TRAVEL DNA overlay
   ========================================================================== */

.mnm-dna-overlay {
  position: fixed;
  inset: 0;
  z-index: 100070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(6, 26, 24, 0.82), rgba(0, 0, 0, 0.88));
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.mnm-dna-overlay.is-in {
  opacity: 1;
}

.mnm-dna-panel {
  position: relative;
  width: min(1080px, 100%);
  max-height: min(880px, calc(100vh - 48px));
  overflow-y: auto;
  padding: 26px 28px 24px;
  border-radius: 26px;
  border: 1px solid rgba(140, 220, 190, 0.28);
  background: linear-gradient(180deg, rgba(11, 26, 28, 0.97), rgba(4, 11, 15, 0.98));
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.7),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transform: translateY(10px) scale(0.99);
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 252, 138, 0.3) transparent;
}

.mnm-dna-overlay.is-in .mnm-dna-panel {
  transform: translateY(0) scale(1);
}

.mnm-dna-panel::-webkit-scrollbar {
  width: 8px;
}

.mnm-dna-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(125, 252, 138, 0.24);
}

.mnm-dna-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.4);
  color: rgba(230, 250, 240, 0.9);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mnm-dna-close:hover {
  border-color: rgba(255, 120, 120, 0.55);
  box-shadow: 0 0 14px rgba(255, 120, 120, 0.24);
}

.mnm-dna-head {
  padding-right: 48px;
}

.mnm-dna-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(157, 255, 176, 0.85);
}

.mnm-dna-archetype {
  margin: 8px 0 4px;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #f2fbff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6);
}

.mnm-dna-sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(210, 240, 235, 0.7);
  max-width: 60ch;
}

.mnm-dna-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 252, 138, 0.3);
  background: linear-gradient(180deg, rgba(125, 252, 138, 0.12), rgba(255, 255, 255, 0.02));
}

.mnm-dna-code-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(157, 255, 176, 0.8);
}

.mnm-dna-code-value {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #eaf8ff;
}

.mnm-dna-body {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 20px;
}

.mnm-dna-art {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
  background: #04100f;
}

.mnm-dna-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.mnm-dna-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.mnm-dna-block {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.2));
}

.mnm-dna-block-title {
  display: block;
  margin-bottom: 10px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(157, 255, 176, 0.8);
}

.mnm-dna-gene {
  display: grid;
  grid-template-columns: minmax(96px, 0.9fr) minmax(0, 1.6fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.mnm-dna-gene-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(224, 246, 240, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mnm-dna-gene-bar {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mnm-dna-gene-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9dffb0, #35c8ff);
  box-shadow: 0 0 12px rgba(53, 200, 255, 0.35);
}

.mnm-dna-gene-val {
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  color: #eaf8ff;
}

.mnm-dna-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mnm-dna-stat {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.24);
  min-width: 0;
}

.mnm-dna-stat-label {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(210, 240, 235, 0.55);
}

.mnm-dna-stat-value {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
  color: #f2fbff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mnm-dna-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mnm-dna-match:last-child {
  border-bottom: 0;
}

.mnm-dna-match-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(234, 248, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mnm-dna-match-val {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  color: #9dffb0;
  letter-spacing: 0.04em;
}

.mnm-dna-match-val.is-muted {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(210, 240, 235, 0.45);
}

.mnm-dna-empty {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(210, 240, 235, 0.6);
}

.mnm-dna-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.mnm-dna-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: rgba(234, 248, 255, 0.92);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.mnm-dna-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 252, 138, 0.42);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.mnm-dna-btn--primary {
  color: #061410;
  border-color: rgba(125, 252, 138, 0.5);
  background: linear-gradient(160deg, #9dffb0, #4fe6c0 55%, #35c8ff);
  box-shadow: 0 10px 24px rgba(53, 200, 255, 0.24);
}

@media (max-width: 900px) {
  .mnm-dna-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .mnm-dna-panel {
    padding: 20px 18px 18px;
  }

  .mnm-dna-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mnm-dna-overlay,
  .mnm-dna-panel,
  .mnm-dna-btn {
    transition: none;
  }
}
