body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  font-family: "MS PGothic", "ＭＳ Ｐゴシック", "MS Gothic", "Osaka", sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.header {
  position: absolute;
  top: 30px;  
  left: 30px; 
  z-index: 10; 
  pointer-events: none; 
  color: #4c87ca; 
}

.header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.header p {
  margin: 4px 0 0 0;
  font-size: 0.75rem;
  letter-spacing: 1px;
  opacity: 0.7; /* Subtly softened transparency texture */
}


.bg {
  position: fixed;
  top: 0; left: 0; 
  width: 100vw; 
  height: 100dvh; 
  z-index: 1; 
  pointer-events: none; 
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bg-ascii-art {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1; 
  margin: 0;
  padding: 0;
  

  color: #4c87ca;
  font-size: 17px; 
  line-height: 1.1;
  white-space: pre;
  
  opacity: 0.2; 
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: none;
}

.line-loop {
  display: block;
  width: 100%; height: auto;
  transform: scale(2); 
  transform-origin: center;
  will-change: transform;
}

@media (max-width: 768px) {
  .line-loop {
    transform: scale(5) translateX(-50px) translateY(-10%);
    transform-origin: center;
    will-change: transform;
  }
}

.drawing-path {
  stroke-dasharray: 1200; 
  stroke-dashoffset: 1200; 
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.line-1 {
  animation: infiniteDrawLine1 30s steps(60) infinite;
}

.line-2 {
  animation: infiniteDrawLine2 30s steps(60) infinite;
}

.line-3 {
  animation: infiniteDrawLine3 30s steps(60) infinite;
}

@keyframes infiniteDrawLine1 {
  0% { stroke-dashoffset: 1200; }
  15%, 18.3% { stroke-dashoffset: 0; } 
  33.3%, 100% { stroke-dashoffset: -1200; } 
}


@keyframes infiniteDrawLine2 {
  0%, 33.3% { stroke-dashoffset: 1200; } 
  48.3%, 51.6% { stroke-dashoffset: 0; } 
  66.6%, 100% { stroke-dashoffset: -1200; } 
}

@keyframes infiniteDrawLine3 {
  0%, 66.6% { stroke-dashoffset: 1200; } 
  81.6%, 85% { stroke-dashoffset: 0; } 
  100% { stroke-dashoffset: -1200; } 
}


#iconclick {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 3; 
  cursor: crosshair;
}

.spawned-node {
  position: absolute;
  transform: translate(-50%, -50%); 
  background: transparent;
  border: none;
  text-decoration: none;
  color: #4c87ca;
  display: inline-flex;
  align-items: center;
  padding: 10px;
  z-index: 9999;
}

.node-icon-img {
  width: 50px; 
  height: 50px;
  display: block;
  pointer-events: none;
  background-color: currentColor; 
}

.spawned-node:hover {
  color: #B5D6FB;
}

#lineicon {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh; 
  z-index: 2; 
  pointer-events: none; 
}

#connector-trail {
  stroke: #4c87ca; 
  stroke-width: 2; 
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.3;    
}
