
:root {
  --bg0: #070808;
  --bg1: #0c0f12;
  --glow: #00ffff;
  --text: #d9fbff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: radial-gradient( circle at 50% 50%, var(--bg1) 0%, var(--bg0) 70%);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  color: var(--text);
}

#network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#processor {
   position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  border-radius: 50%; /* если хочешь лёгкое скругление */
  overflow: hidden;
  transition: box-shadow 0.8s ease, transform 0.4s ease;
  box-shadow: 0 0 45px 18px rgba(0,255,255,0.25);
}

#processor-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 125px;   /* можно подстроить */
  max-height: 125px;
  border-radius: inherit;
  object-fit: cover;  /* сохраняет пропорции */
  transition: transform 0.4s ease, filter 0.4s ease;
}

#processor:hover #processor-img {
  transform: scale(1.04);
  filter: brightness(1.15);
}

#processor:hover {
  box-shadow: 0 0 40px rgba(0,255,255,0.6), inset 0 0 24px rgba(0,255,255,0.35);
}

#objects {
  position: absolute;
  inset: 0;
  pointer-events: none; /* let child anchors receive */
}

.object {
  position: absolute;
  text-align: center;
  pointer-events: auto;
}

.object a {
  text-decoration: none;
  color: var(--text);
}

.object img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  transition: transform .28s ease, box-shadow .28s ease;
}

.object span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  opacity: .9;
}

.object:hover img {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

/* phantom dot */
.phantom {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0,255,255,0.35);
  box-shadow: 0 0 12px rgba(0,255,255,0.6);
}

.object.phantom {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0,255,255,0.35);
  box-shadow: 0 0 12px rgba(0,255,255,0.6);
  pointer-events: auto; /* чтобы ловил hover */
}
/* активный child остаётся в своём месте */
.object.child.active-child {
 position: absolute;
  display: block;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

/* сама подпись-надпись (.label) */
.object.child .label {
  position: relative;          /* чтобы tooltip позиционировался от неё */
  z-index: 2;                  /* поверх tooltip-фона */
}

/* tooltip */
.active-tooltip {
  position: absolute;
  bottom: 0%;                /* можно заменить на top: 130% если нужно снизу */
  left: 155%;
  transform: translateX(-50%);
  background: rgba(0,255,255,0.08);
  border: 1px solid rgba(0,255,255,0.3);
  border-radius: 10px;
  padding: 6px 10px;
  color: rgba(0,255,255,0.9);
  font-size: 12px;
  font-family: "Inter", sans-serif;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-shadow: 0 0 4px rgba(0,255,255,0.6);
  box-shadow: 0 0 12px rgba(0,255,255,0.25);
  z-index: 1;                  /* ниже текста */
}

/* плавное появление при hover */
.object.child.active-child:hover .active-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-3px);
  z-index: 3;                  /* поверх всего */
}

.inactive-tooltip {
  position: absolute;
  bottom: 0%;
  left: 155%;
  transform: translateX(-50%);
  background: rgba(0,255,255,0.08);
  border: 1px solid rgba(0,255,255,0.3);
  border-radius: 10px;
  padding: 6px 10px;
  color: rgba(0,255,255,0.9);
  font-size: 12px;
  font-family: "Inter", sans-serif;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 12px rgba(0,255,255,0.25);
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  z-index: 2;
}

.object:hover .inactive-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-3px);
  z-index: 3; 
}



@keyframes processorPopIn {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    box-shadow: none;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 0 25px 10px rgba(0,255,255,0.3);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    box-shadow: 0 0 19px 11px rgba(0,255,255,0.15);
  }
}

@media (max-width: 768px) {
  #processor {
    transform: scale(0.7); /* уменьшили логотип */
    transform-origin: center center;
  }
  /* переопределим inline-стили шрифта (есть в span.label) */
  .object.parent .label { font-size: 28px !important; }
  .object.child  .label { font-size: 18px !important; }

#processor-img {
 
  max-width: 100px !important;   /* можно подстроить */
  max-height: 100px !important;
 
}
}