.root {
  > .downchain > .chain {
    margin-bottom: 1rem;
  }

  .downchain {
    padding-left: 1.5rem;
    overflow: hidden;
  }

  .home {
    display: flex;
    align-items: center;
    transition: margin-top 0.3s ease;
    position: relative;
    margin-top: 0;
    margin: 0 0.5rem;

    &::before {
      content: " ";
      position: absolute;
      right: -0.5rem;
      left: 1rem;
      top: 0.25rem;
      bottom: 3px;
      transition: 0.3s ease;
      opacity: 0;
    }

    &::after {
      content: " ";
      position: absolute;
      right: -0.5rem;
      bottom: 3px;
      left: 0.5rem;
      height: 1px;
      background: currentColor;
      opacity: 0;
      transition: opacity 0.3s ease;
      z-index: 2;
    }

    &.active::after {
      opacity: 1;
    }

    &.blue::before, &.red::before {
      animation-name: flare;
      animation-iteration-count: infinite;
      animation-direction: alternate;
      animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0);
    }

    &.blue::before {
      background: var(--color6);
      animation-duration: 1s;
    }

    &.red::before {
      background: var(--color3);
      animation-duration: 0.5s;
    }

    .house {
      position: relative;
      margin-right: 0.25rem;

      .icon {
        position: relative;
        height: 3rem;
        width: 3rem;
      }

      &::before {
        content: " ";
        background: var(--base3);
        border-radius: 50%;
        position: absolute;
        top: 0.25rem;
        left: 0;
        right: 0;
        bottom: -0.25rem;
      }
    }

    .names {
      position: relative;
      flex-grow: 1;
    }

    .map-name {
      font-size: 1.75rem;
      font-weight: 700;
      line-height: 1;
    }

    .system-name {
      white-space: nowrap;
      font-size: 0.875rem;
      font-weight: 900;
      line-height: 1;
      text-transform: uppercase;
      display: flex;
      gap: 0.5rem;
    }
  }
}
